diff --git a/support/support_fuse.c b/support/support_fuse.c index 135dbf1198..f6c063b549 100644 --- a/support/support_fuse.c +++ b/support/support_fuse.c @@ -659,6 +659,7 @@ support_fuse_unmount (struct support_fuse *f) if (rmdir (f->mountpoint) != 0) FAIL ("FUSE: rmdir (\"%s\"): %m", f->mountpoint); xclose (f->fd); + free (f->buffer_start); free (f->mountpoint); free (f->readdir_buffer); free (f); diff --git a/support/tst-support_fuse.c b/support/tst-support_fuse.c index c4075a6608..9ee637cbab 100644 --- a/support/tst-support_fuse.c +++ b/support/tst-support_fuse.c @@ -331,6 +331,7 @@ do_test (void) { char *subdir_path = xasprintf ("%s/subdir", support_fuse_mountpoint (f)); xmkdir (subdir_path, 01234); + free (subdir_path); } {