33 lines
674 B
Diff
33 lines
674 B
Diff
|
|
From efa3032bc9a6d9028084a8c33c9b31946b16aea1 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Rostislav Skudnov <rostislav@tuxera.com>
|
||
|
|
Date: Sat, 21 Jul 2018 21:14:06 +0000
|
||
|
|
Subject: [PATCH 533/617] fusermount: Fix memory leaks
|
||
|
|
|
||
|
|
---
|
||
|
|
util/fusermount.c | 2 ++
|
||
|
|
1 file changed, 2 insertions(+)
|
||
|
|
|
||
|
|
diff --git a/util/fusermount.c b/util/fusermount.c
|
||
|
|
index c63c50e..b8c164d 100644
|
||
|
|
--- a/util/fusermount.c
|
||
|
|
+++ b/util/fusermount.c
|
||
|
|
@@ -446,6 +446,7 @@ static int unmount_fuse_locked(const char *mnt, int quiet, int lazy)
|
||
|
|
}
|
||
|
|
|
||
|
|
out:
|
||
|
|
+ free(copy);
|
||
|
|
if (res == -1)
|
||
|
|
return -1;
|
||
|
|
|
||
|
|
@@ -1365,6 +1366,7 @@ do_unmount:
|
||
|
|
}
|
||
|
|
if (res == -1)
|
||
|
|
goto err_out;
|
||
|
|
+ free(mnt);
|
||
|
|
return 0;
|
||
|
|
|
||
|
|
err_out:
|
||
|
|
--
|
||
|
|
1.8.3.1
|
||
|
|
|