blob: b2836d3041d0b8321fc6f9c0cf164d42e3846d4f [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001/* Finish a session using libdwfl.
2 Copyright (C) 2005 Red Hat, Inc.
3
4 This program is Open Source software; you can redistribute it and/or
5 modify it under the terms of the Open Software License version 1.0 as
6 published by the Open Source Initiative.
7
8 You should have received a copy of the Open Software License along
9 with this program; if not, you may obtain a copy of the Open Software
10 License version 1.0 from http://www.opensource.org/licenses/osl.php or
11 by writing the Open Source Initiative c/o Lawrence Rosen, Esq.,
12 3001 King Ranch Road, Ukiah, CA 95482. */
13
14#include "libdwflP.h"
15
16void
17dwfl_end (Dwfl *dwfl)
18{
19 if (dwfl != NULL)
20 {
21 for (size_t i = 0; i < dwfl->nmodules; ++i)
22 if (dwfl->modules[i] != NULL)
23 __libdwfl_module_free (dwfl->modules[i]);
24 free (dwfl->modules);
25 }
26}