From: Adam Sutton Date: Fri, 25 May 2012 12:57:50 +0000 (+0100) Subject: Add missing free() X-Git-Tag: 3.3~219^2~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=badccc4febcefa09fc2a7b4a87528460789787e7;p=thirdparty%2Ftvheadend.git Add missing free() --- diff --git a/src/epg.c b/src/epg.c index f3e305b69..76c2a0180 100644 --- a/src/epg.c +++ b/src/epg.c @@ -1127,6 +1127,7 @@ int epg_channel_set_name ( epg_channel_t *channel, const char *name ) channel_t *ch; if ( !channel || !name ) return 0; if ( !channel->name || strcmp(channel->name, name) ) { + if (channel->name) free(channel->name); channel->name = strdup(name); // NOTE: does not remap if ( !channel->channel ) {