From d96457e1a4eefdf270332707518060490faf59a1 Mon Sep 17 00:00:00 2001 From: Syam Sidhardhan Date: Thu, 12 Apr 2012 20:32:52 +0530 Subject: [PATCH] health: Fix memory leak --- health/mcap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/health/mcap.c b/health/mcap.c index 4c726b66e..b76d88a5a 100644 --- a/health/mcap.c +++ b/health/mcap.c @@ -901,6 +901,7 @@ static gboolean parse_set_opts(struct mcap_mdl_cb *mdl_cb, GError **err, default: g_set_error(err, MCAP_ERROR, MCAP_ERROR_INVALID_ARGS, "Unknown option %d", cb); + g_free(c); return FALSE; } cb = va_arg(args, int); -- 2.47.3