how do i free memory alloced by mountlist.c / read_filesystem_list ?

        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

Now my lame question: How to free the memory?

I have tried:

        me = mount_list;
        while (me) {
                mount_list = me;
                me = me->me_next;

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]