summaryrefslogtreecommitdiff
path: root/libavformat/rtmpproto.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2009-12-11 15:31:58 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-12-11 15:31:58 +0000
commitf8caa5441b2e1a9b45f19415512a855ac482398f (patch)
tree3e789dd776099fd568fc49e61e54e86c322bb37a /libavformat/rtmpproto.c
parent72b870b95b18865ea0851b0233f96a6a2159b8cf (diff)
downloadffmpeg-f8caa5441b2e1a9b45f19415512a855ac482398f.tar.gz
5l trocadero: don't forget to free packet in gen_connect()
Patch by Martin Storsjö ($name at $name dot `abbreviation for "street"`) Originally committed as revision 20798 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r--libavformat/rtmpproto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index c9b177493d..559a93f867 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -144,6 +144,7 @@ static void gen_connect(URLContext *s, RTMPContext *rt, const char *proto,
pkt.data_size = p - pkt.data;
ff_rtmp_packet_write(rt->stream, &pkt, rt->chunk_size, rt->prev_pkt[1]);
+ ff_rtmp_packet_destroy(&pkt);
}
/**