fix memleak in cuse_lowlevel_setup (#472)
authorTomasz Kulasek <34129113+tkulasek@users.noreply.github.com>
Wed, 20 Nov 2019 11:43:52 +0000 (12:43 +0100)
committerNikolaus Rath <Nikolaus@rath.org>
Wed, 20 Nov 2019 11:43:52 +0000 (11:43 +0000)
Local variable args is not freed on cuse_lowlevel_setup success.

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
lib/cuse_lowlevel.c

index 9917b6497609187c92d46d762057e33fa147e0c2..b70947e3d1b2135c603462e8eb3bb17e38f8da6e 100644 (file)
@@ -319,6 +319,7 @@ struct fuse_session *cuse_lowlevel_setup(int argc, char *argv[],
        if (res == -1)
                goto err_sig;
 
+       fuse_opt_free_args(&args);
        return se;
 
 err_sig: