aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Zissimopoulos <billziss@navimatics.com>2020-01-02 03:08:03 -0800
committerNikolaus Rath <Nikolaus@rath.org>2020-01-02 11:08:03 +0000
commit50fe9f7c818628dc5dd69218c851a48fa1f07987 (patch)
treef760e44f6e28cdebf4141c7e0504f4583c6b3ef7
parente3dcc2d550afebf9b4386f71294ab01fc1d6299d (diff)
downloadlibfuse-50fe9f7c818628dc5dd69218c851a48fa1f07987.tar.gz
Fixed memory leak in fuse_session_new()
-rw-r--r--ChangeLog.rst2
-rw-r--r--lib/fuse_lowlevel.c3
2 files changed, 4 insertions, 1 deletions
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: