File portaudio-double-free.diff of Package kiax

Index: iaxclient/lib/audio_portaudio.c
===================================================================
--- iaxclient.orig/lib/audio_portaudio.c
+++ iaxclient/lib/audio_portaudio.c
@@ -286,9 +286,11 @@ static int pa_play_sound(struct iaxc_sou
 
   *sound = *inSound;
   
   MUTEXLOCK(&sound_lock);
-  sound->malloced = 1;
+  /* The caller should set this!!! And even then, it should be cleared
+   * in one of the two copies ... 
+   * sound->malloced = 1; */
   sound->channel = ring;
   sound->id = nextSoundId++; 
   sound->pos = 0;
     
openSUSE Build Service is sponsored by