Commit 5d928867920e27d61d581710aac3a167c9e86e4f

Authored by Jean-Christophe Dubois
Committed by malc
1 parent 97f155dd

fix qemu_alloc/qemu_free for audio subsystem

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
Showing 1 changed file with 2 additions and 2 deletions
audio/paaudio.c
@@ -340,7 +340,7 @@ static int qpa_init_out (HWVoiceOut *hw, struct audsettings *as) @@ -340,7 +340,7 @@ static int qpa_init_out (HWVoiceOut *hw, struct audsettings *as)
340 return 0; 340 return 0;
341 341
342 fail3: 342 fail3:
343 - free (pa->pcm_buf); 343 + qemu_free (pa->pcm_buf);
344 pa->pcm_buf = NULL; 344 pa->pcm_buf = NULL;
345 fail2: 345 fail2:
346 pa_simple_free (pa->s); 346 pa_simple_free (pa->s);
@@ -394,7 +394,7 @@ static int qpa_init_in (HWVoiceIn *hw, struct audsettings *as) @@ -394,7 +394,7 @@ static int qpa_init_in (HWVoiceIn *hw, struct audsettings *as)
394 return 0; 394 return 0;
395 395
396 fail3: 396 fail3:
397 - free (pa->pcm_buf); 397 + qemu_free (pa->pcm_buf);
398 pa->pcm_buf = NULL; 398 pa->pcm_buf = NULL;
399 fail2: 399 fail2:
400 pa_simple_free (pa->s); 400 pa_simple_free (pa->s);