changeset 1313:d797ecb9778f

sh_audio->a_buffer is freed twice (here and in mplayer.c), can result to malloc heap corruption.
author jkeil
date Fri, 13 Jul 2001 08:54:24 +0000
parents cca0d2481b7e
children cbbc5bc64c46
files dec_audio.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dec_audio.c	Fri Jul 13 08:51:50 2001 +0000
+++ b/dec_audio.c	Fri Jul 13 08:54:24 2001 +0000
@@ -260,6 +260,7 @@
 
   if(!driver){
       if(sh_audio->a_buffer) free(sh_audio->a_buffer);
+      sh_audio->a_buffer=NULL;
       sh_audio->o_bps=0;
       return 0;
   }