Mercurial > mplayer.hg
changeset 17820:4e04e61b54ac
close channels file before exiting dvb_get_channels() if malloc(dvb_channels_list) fails; closes cid 161
author | nicodvb |
---|---|
date | Sun, 12 Mar 2006 11:45:27 +0000 |
parents | 7d5716fd634c |
children | 6be72b753b82 |
files | libmpdemux/dvbin.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/dvbin.c Sun Mar 12 11:12:48 2006 +0000 +++ b/libmpdemux/dvbin.c Sun Mar 12 11:45:27 2006 +0000 @@ -149,6 +149,7 @@ list = malloc(sizeof(dvb_channels_list)); if(list == NULL) { + fclose(f); mp_msg(MSGT_DEMUX, MSGL_V, "DVB_GET_CHANNELS: couldn't malloc enough memory\n"); return NULL; }