From: Rostislav Skudnov Date: Sat, 21 Jul 2018 21:14:06 +0000 (+0000) Subject: fusermount: Fix memory leaks X-Git-Tag: fuse-3.2.5~5 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=efa3032bc9a6d9028084a8c33c9b31946b16aea1;p=qemu-gpiodev%2Flibfuse.git fusermount: Fix memory leaks --- 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: