Browse Source

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>
tags/n0.9
Martin Storsjö 14 years ago
parent
commit
02490bf358
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rtmpproto.c

+ 1
- 1
libavformat/rtmpproto.c View File

@@ -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;


Loading…
Cancel
Save