Whamcloud - gitweb
libext2fs: fix possible memory leak in write_journal_inode()
authorNamhyung Kim <namhyung@gmail.com>
Mon, 29 Nov 2010 08:55:16 +0000 (17:55 +0900)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Dec 2010 15:43:01 +0000 (10:43 -0500)
commit91dc3f0db0185503083f54c7b464900c851df0aa
treec6376871ae8b16031e30c8210b8aa7a22fd03515
parent8a1cf3c243cf8447d814c4e3432fcf6282aa40e9
libext2fs: fix possible memory leak in write_journal_inode()

ext2fs_zero_block2() allocates static buffer if needed so it
should be freed at last (call it again with 0 args).

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/mkjournal.c