summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_mount.c
diff options
context:
space:
mode:
authorNamhyung Kim2013-09-25 17:32:05 +0200
committerKarel Zak2013-09-26 09:35:02 +0200
commit0705e84a1327cc03eeae184a4a47edeea4675f93 (patch)
treeb517d608089214508f9c4c74198f2481bd7a3323 /libmount/src/context_mount.c
parentlibmount: Free splitted optstr's when error occurred (diff)
downloadkernel-qcow2-util-linux-0705e84a1327cc03eeae184a4a47edeea4675f93.tar.gz
kernel-qcow2-util-linux-0705e84a1327cc03eeae184a4a47edeea4675f93.tar.xz
kernel-qcow2-util-linux-0705e84a1327cc03eeae184a4a47edeea4675f93.zip
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>
Diffstat (limited to 'libmount/src/context_mount.c')
0 files changed, 0 insertions, 0 deletions