dont leak memory
This commit is contained in:
parent
e89b312454
commit
23b72c500d
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue