From 18ae059a0f5b3d467823f6552e2921aca283ab71 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 6 Feb 2011 10:50:02 +0200 Subject: [PATCH] * mug2/mug.cc: fix small memleak --- toys/mug2/mug.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toys/mug2/mug.cc b/toys/mug2/mug.cc index 365fce34..d2966184 100644 --- a/toys/mug2/mug.cc +++ b/toys/mug2/mug.cc @@ -409,10 +409,12 @@ main (int argc, char *argv[]) memset (&mugdata, 0, sizeof (MugData)); if (!g_option_context_parse (octx, &argc, &argv, NULL)) { + g_option_context_free (octx); g_printerr ("mug: error in options\n"); return 1; } + g_option_context_free (octx); mu_runtime_init (mugdata.muhome); mugshell = mug_shell (&mugdata);