]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: Set each optstr's to NULL if failed
authorNamhyung Kim <namhyung@gmail.com>
Wed, 25 Sep 2013 15:32:05 +0000 (00:32 +0900)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Sep 2013 07:35:02 +0000 (09:35 +0200)
commit0705e84a1327cc03eeae184a4a47edeea4675f93
treeb517d608089214508f9c4c74198f2481bd7a3323
parentc470cbfc85ffba5f0fae7a74d27553fd623a9844
libmount: Set each optstr's to NULL if failed

When mnt_split_optstr() failed in the middle, vfs, fs, user optstr's
are freed but not reset.  It can lead to double frees at the end of
mnt_fs_{ap,pre}pend_options().

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
libmount/src/optstr.c