Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-12-01 13:34:06 +0400
committerMartin Storsjö <martin@martin.st>2011-12-01 15:47:25 +0400
commit02490bf3587d86a730e0de12572026504e2cb942 (patch)
tree537aec190bc6b89001921143f973954014c4424d
parent6af354436ca99324b6d35e8a7a24c1abf6667595 (diff)
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.c2
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;