summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-21 22:28:48 +0200
committerrbuj <[email protected]>2021-12-21 13:54:05 +0100
commitcb4703ed7214fd5366ee1837c63fd2bcdf21319c (patch)
treec41993bc23401097efceccb1089bf628f2aa4e15
parent74646513584b8bcbea61b37ddb3e75a5a206605c (diff)
downloadmate-utils-cb4703ed7214fd5366ee1837c63fd2bcdf21319c.tar.bz2
mate-utils-cb4703ed7214fd5366ee1837c63fd2bcdf21319c.tar.xz
mate-disk-image-mounter: fix memory leak
-rw-r--r--mate-disk-image-mounter/src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mate-disk-image-mounter/src/main.c b/mate-disk-image-mounter/src/main.c
index b4f4d221..fc65b2d5 100644
--- a/mate-disk-image-mounter/src/main.c
+++ b/mate-disk-image-mounter/src/main.c
@@ -191,8 +191,10 @@ main (int argc, char *argv[])
s = g_option_context_get_help (o, FALSE, NULL);
g_printerr ("%s", s);
g_free (s);
+ g_option_context_free (o);
goto out;
}
+ g_option_context_free (o);
if (argc > 1)
{