summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-21 22:28:48 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2021-12-21 13:51:51 +0100
commitf2f464fc5c7997d5d62d559306fe6a74c1021878 (patch)
tree307e325e354655bad27cff319ed8a5cb2b02eaf1
parentd8524845d09311f0b037eb7b8e13c45724bb1661 (diff)
downloadmate-utils-f2f464fc5c7997d5d62d559306fe6a74c1021878.tar.bz2
mate-utils-f2f464fc5c7997d5d62d559306fe6a74c1021878.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)
{