how do i free memory alloced by mountlist.c / read_filesystem_list ?
- From: Bruno Widmann <bwidmann tks fh-sbg ac at>
- To: gnome-list gnome org
- Subject: how do i free memory alloced by mountlist.c / read_filesystem_list ?
- Date: Thu, 18 Jun 1998 11:19:47 +0000 (GMT)
struct mount_entry *mount_list, *me;
mount_list = read_filesystem_list (0, 0);
is used in the diskusage_applet to get fs-status. It's called repeatedly,
and it return's a pointer to a newly alloced linked list, containing the
info.
Now my lame question: How to free the memory?
I have tried:
me = mount_list;
while (me) {
mount_list = me;
me = me->me_next;
free(mount_list);
}
after each time it's called, but that doesn't help much.
any help would be appreciated.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]