mountlist: add support for deallocating returned list entries
authorPádraig Brady <P@draigBrady.com>
Tue, 9 Jul 2013 12:55:58 +0000 (13:55 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 9 Jul 2013 12:55:58 +0000 (13:55 +0100)
commit41d1b6c42641a5b9e21486ca2074198ee7909bd7
tree31c712b1f9e49cd6cbc55a8e3552918753c8e725
parent848529bafe96b53d3a52af546aeb04bae1bd35d5
mountlist: add support for deallocating returned list entries

* lib/mountlist.c (free_mount_entry): A new exported function
to deallocate a mount list entry.
* lib/mountlist.h: Declare the new function.
(read_file_system_list): Refactor to use the new deallocation function.
Suggested by Anton Ovchinnikov.
ChangeLog
lib/mountlist.c
lib/mountlist.h