Diff between 4292c980d37bccade57c241156dd463519fd1bfb and d96457e1a4eefdf270332707518060490faf59a1

Changed Files

File Additions Deletions Status
health/mcap.c +1 -0 modified

Full Patch

diff --git a/health/mcap.c b/health/mcap.c
index 4c726b6..b76d88a 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);