mirror of https://github.com/mpv-player/mpv
Missing free in malloc error case in COutputPinCreate.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27871 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fa504971c5
commit
5fefd9f70a
|
@ -906,6 +906,7 @@ COutputPin* COutputPinCreate(const AM_MEDIA_TYPE* amt,SAMPLEPROC SampleProc,void
|
|||
if (!This->vt || !This->mempin || !ivt)
|
||||
{
|
||||
COutputPin_Destroy(This);
|
||||
free(ivt);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue