Fix possible memory leaks

This commit is contained in:
evpobr 2020-09-01 10:12:13 +05:00
parent 3cf7b3ec75
commit 9f11011bc4
3 changed files with 3 additions and 0 deletions

View File

@ -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 ;
} ;

View File

@ -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 ;
} ;

View File

@ -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 ;
} ;