]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
dont leak memory
authorAndreas Öman <andreas@lonelycoder.com>
Wed, 28 Nov 2007 08:08:46 +0000 (08:08 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Wed, 28 Nov 2007 08:08:46 +0000 (08:08 +0000)
channels.c

index 9d573dd4715be15ce7f1b061da5bb7952f292874..b82268a94587d0107ef6aff988137542c8cbb975 100644 (file)
@@ -76,6 +76,8 @@ channel_find(const char *name, int create)
   }
   *cp = 0;
 
+  free((void *)n2);
+
   ch->ch_index = nchannels;
   TAILQ_INIT(&ch->ch_epg_events);