.memleak fix by Ronald Bultje. OK'd by Luca.

Originally committed as revision 9697 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Beregszaszi 2007-07-16 10:56:40 +00:00
parent 4508af2daa
commit e2e2e7dd70
1 changed files with 2 additions and 0 deletions

View File

@ -814,6 +814,8 @@ static void rtsp_send_cmd(AVFormatContext *s,
}
if (content_ptr)
*content_ptr = content;
else
av_free(content);
}