Skip to content

Commit

Permalink
Fix 'pulseaudioHostApi' use-after-free in PaPulseAudio_Initialize
Browse files Browse the repository at this point in the history
The call to PaPulseAudio_UnLock( pulseaudioHostApi->mainloop ) in
error-label is performed on 'pulseaudioHostApi' after
'pulseaudioHostApi' has been freed by PaPulseAudio_Free
  • Loading branch information
bear101 committed Oct 5, 2023
1 parent ba3f91f commit b5fbfaf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/hostapi/pulseaudio/pa_linux_pulseaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,6 @@ PaError PaPulseAudio_Initialize( PaUtilHostApiRepresentation ** hostApi,
pulseaudioHostApi = NULL;
}

PaPulseAudio_UnLock( pulseaudioHostApi->mainloop );
return result;
}

Expand Down

0 comments on commit b5fbfaf

Please sign in to comment.