Skip to content

Commit

Permalink
fix the Memory leak: psp (#16016)
Browse files Browse the repository at this point in the history
fix the Memory leak: psp

Signed-off-by: zengwei [email protected]

Signed-off-by: zengwei [email protected]
  • Loading branch information
zengwei00 authored Dec 21, 2023
1 parent 4abd4e8 commit df05f6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions audio/drivers/psp_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ static void *psp_audio_init(const char *device,
return NULL;

if ((port = configureAudio(rate)) < 0)
{
free(psp);
return NULL;
}

#if defined(ORBIS)
sceAudioOutInit();
Expand Down

0 comments on commit df05f6e

Please sign in to comment.