]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix a potential memory leak at mnt_table_parse_dir
authorMasatake YAMATO <yamato@redhat.com>
Fri, 20 Jan 2012 04:00:34 +0000 (13:00 +0900)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Jan 2012 12:54:03 +0000 (13:54 +0100)
commitb28890b04185676354b38d5443109d196f95d2d8
tree1cd58340c97f02355376e0e0ed5b813952ca8f0e
parent9deeef8e47bf204298f346a54011c491b2480b0a
libmount: fix a potential memory leak at mnt_table_parse_dir

mnt_table_parse_dir in libmount/src/tab_parse.c calls
scandir, and then opendir. When the latter one, opendir is failed,
buffers allocated in scandir are not released.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
libmount/src/tab_parse.c