From: Bill Zissimopoulos Date: Thu, 2 Jan 2020 11:08:03 +0000 (-0800) Subject: Fixed memory leak in fuse_session_new() X-Git-Tag: fuse-3.9.1~14 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=50fe9f7c818628dc5dd69218c851a48fa1f07987;p=qemu-gpiodev%2Flibfuse.git Fixed memory leak in fuse_session_new() --- diff --git a/ChangeLog.rst b/ChangeLog.rst index 284015d..a56f854 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -5,8 +5,10 @@ libfuse 3.10.0 (2019-12-14) Define FUSE_USE_VERSION < 35 to get old ioctl prototype with int commands; define FUSE_USE_VERSION >= 35 to get new ioctl prototype with unsigned int commands. +* Fixed memory leak in fuse_session_new(). * Fixed an issue with the linker version script. + libfuse 3.9.0 (2019-12-14) ========================== diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index 3671385..d8112f5 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -2975,7 +2975,8 @@ out5: out4: fuse_opt_free_args(args); out3: - free(mo); + if (mo != NULL) + destroy_mount_opts(mo); out2: free(se); out1: