[MPlayer-cvslog] CVS: main/libmpdemux dvbin.c,1.18,1.19
Nico Sabbi CVS
syncmail at mplayerhq.hu
Sun Mar 12 12:45:29 CET 2006
CVS change done by Nico Sabbi CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv31376
Modified Files:
dvbin.c
Log Message:
close channels file before returning exiting dvb_get_channels() if malloc(dvb_channels_list) fails; closes cid 161
Index: dvbin.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/dvbin.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- dvbin.c 24 Feb 2006 22:46:23 -0000 1.18
+++ dvbin.c 12 Mar 2006 11:45:27 -0000 1.19
@@ -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;
}
More information about the MPlayer-cvslog
mailing list