Mercurial > mplayer.hg
changeset 36554:d75b3dce7851
ad_realaud: Fix memory leak in error path.
author | reimar |
---|---|
date | Sun, 19 Jan 2014 22:24:45 +0000 |
parents | e5e36c2a0055 |
children | 46a0b7b3db4c |
files | libmpcodecs/ad_realaud.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_realaud.c Sun Jan 19 21:45:59 2014 +0000 +++ b/libmpcodecs/ad_realaud.c Sun Jan 19 22:24:45 2014 +0000 @@ -313,12 +313,12 @@ result = raOpenCodec2(&sh->context, path); } else result=raOpenCodec(&sh->context); + free(path); /* after this it isn't used anymore */ if(result){ mp_msg(MSGT_DECAUDIO,MSGL_WARN,"Decoder open failed, error code: 0x%X\n",result); return 0; } // printf("opencodec ok (result: %x)\n", result); - free(path); /* after this it isn't used anymore */ sh->samplerate=sh->wf->nSamplesPerSec; sh->samplesize=sh->wf->wBitsPerSample/8;