dont leak memory

This commit is contained in:
Andreas Öman 2007-11-28 08:08:46 +00:00
parent e89b312454
commit 23b72c500d

View 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);