df: reduce memory usage when filtering mount entries
commit3ebc58cc4370567be7301e02b661a2fe5478d86c
authorAnton Ovchinnikov <revolver112@gmail.com>
Thu, 11 Jul 2013 12:44:24 +0000 (11 13:44 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 11 Jul 2013 12:44:24 +0000 (11 13:44 +0100)
treef201af65a73f99fde918edbf2912d8695c103420
parent27712763e34b8569012f39d18aaf698e2840ec3f
df: reduce memory usage when filtering mount entries

Avoid Valgrind reports of "definitely lost" items
and while at it, free all discarded mount entries
to minimize the amount of memory used.

* src/df.c (filter_mount_list): Use the newly exported
free_mount_entry() from gnulib to free all mount entries
as they're discarded.
src/df.c