# HG changeset patch # User Andrew Borodin # Date 1381069697 -14400 # Node ID 034ed2a8503753547a3938e4a711d54099b6624c # Parent c470b35aad120651c9d37d3204c69af0d29c5d85 mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS * lib/mountlist.c (read_file_system_list): fix leak of directory streams in case of #ifdef MOUNTED_INTERIX_STATVFS. Signed-off-by: Andrew Borodin diff -r c470b35aad12 -r 034ed2a85037 ChangeLog --- a/ChangeLog Sun Oct 06 14:10:29 2013 -0700 +++ b/ChangeLog Sun Oct 06 18:28:17 2013 +0400 @@ -1,3 +1,9 @@ +2013-10-06 Andrew Borodin + + mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS + * lib/mountlist.c (read_file_system_list): fix leak of directory + streams in case of #ifdef MOUNTED_INTERIX_STATVFS. + 2013-10-06 Paul Eggert tests: improve diagnostic when an assertion fails diff -r c470b35aad12 -r 034ed2a85037 lib/mountlist.c --- a/lib/mountlist.c Sun Oct 06 14:10:29 2013 -0700 +++ b/lib/mountlist.c Sun Oct 06 18:28:17 2013 +0400 @@ -946,6 +946,7 @@ mtail = &me->me_next; } } + closedir (dirp); } #endif /* MOUNTED_INTERIX_STATVFS */