From: Kristofer Karlsson Date: Mon, 31 Dec 2012 12:39:18 +0000 (+0100) Subject: Fix memory leak on add channel X-Git-Tag: v3.5~212^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c341b12f904fefd37c16121465e59e6a4dcccae4;p=thirdparty%2Ftvheadend.git Fix memory leak on add channel --- diff --git a/src/webui/extjs.c b/src/webui/extjs.c index 059417c0b..ca987e949 100644 --- a/src/webui/extjs.c +++ b/src/webui/extjs.c @@ -487,6 +487,7 @@ extjs_channels(http_connection_t *hc, const char *remain, void *opaque) htsmsg_add_msg(out, "entries", array); } else if(!strcmp(op, "create")) { + htsmsg_destroy(out); out = build_record_channel(channel_create()); } else if(!strcmp(op, "delete") && in != NULL) {