From eb9eb1d8f1165293e56f996698e09d58e644908a Mon Sep 17 00:00:00 2001 From: Matthias Görgens Date: Thu, 8 Jun 2023 18:20:56 +0800 Subject: Fix memory leak (#785) This is just to [keep address sanitizer happy](https://github.com/libfuse/libfuse/actions/runs/4730520764/jobs/8394347666?pr=784). The OS would normally clean this up anyway. Co-authored-by: Nikolaus Rath --- util/fusermount.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/fusermount.c') diff --git a/util/fusermount.c b/util/fusermount.c index 034383e..06f2461 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -1468,6 +1468,7 @@ int main(int argc, char *argv[]) if (!auto_unmount) { free(mnt); + free((void*) type); return 0; } @@ -1520,10 +1521,12 @@ do_unmount: goto err_out; success_out: + free((void*) type); free(mnt); return 0; err_out: + free((void*) type); free(mnt); exit(1); } -- cgit v1.2.3