mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-26 19:40:24 +00:00
Fix possible memory leaks
This commit is contained in:
parent
3cf7b3ec75
commit
9f11011bc4
@ -316,6 +316,7 @@ ogg_opus_open (SF_PRIVATE *psf)
|
||||
|
||||
if (odata == NULL)
|
||||
{ psf_log_printf (psf, "%s : odata is NULL???\n", __func__) ;
|
||||
free (oopus) ;
|
||||
return SFE_INTERNAL ;
|
||||
} ;
|
||||
|
||||
|
@ -60,6 +60,7 @@ ogg_pcm_open (SF_PRIVATE *psf)
|
||||
|
||||
if (odata == NULL)
|
||||
{ psf_log_printf (psf, "%s : odata is NULL???\n", __func__) ;
|
||||
free (opcm) ;
|
||||
return SFE_INTERNAL ;
|
||||
} ;
|
||||
|
||||
|
@ -76,6 +76,7 @@ ogg_speex_open (SF_PRIVATE *psf)
|
||||
|
||||
if (odata == NULL)
|
||||
{ psf_log_printf (psf, "%s : odata is NULL???\n", __func__) ;
|
||||
free (spx) ;
|
||||
return SFE_INTERNAL ;
|
||||
} ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user