diff options
author | Martin Storsjö <martin@martin.st> | 2011-12-01 11:34:06 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-12-01 13:47:25 +0200 |
commit | 02490bf3587d86a730e0de12572026504e2cb942 (patch) | |
tree | 537aec190bc6b89001921143f973954014c4424d | |
parent | 6af354436ca99324b6d35e8a7a24c1abf6667595 (diff) | |
download | ffmpeg-02490bf3587d86a730e0de12572026504e2cb942.tar.gz |
rtmp: Clean up properly if the handshake failed
This prevents memory leaks if this function returns an error.
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavformat/rtmpproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 37c3d95aca..979c5b6562 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -826,7 +826,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags) rt->state = STATE_START; if (rtmp_handshake(s, rt)) - return -1; + goto fail; rt->chunk_size = 128; rt->state = STATE_HANDSHAKED; |