]> git.sesse.net Git - ffmpeg/commit
avformat/rtspdec: fix potential mem leak in listen mode
authorAndriy Gelman <andriy.gelman@gmail.com>
Fri, 27 Nov 2020 00:37:21 +0000 (19:37 -0500)
committerAndriy Gelman <andriy.gelman@gmail.com>
Sat, 28 Nov 2020 17:27:53 +0000 (12:27 -0500)
commitf3891430fc15cc8a1b7a16916030962e0a4d609c
treecc9a1640d9d1f47a8fd18baef41a0dfbd34f46ed
parentb0019b909be7a735b09f89207272294008ff2c0c
avformat/rtspdec: fix potential mem leak in listen mode

Currently a repeating setup request (with the same stream id) will
simply overwrite rtp_handle/transport_priv without freeing the
resources first. This is fixed by closing the previous setup request.

Reviewed-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
libavformat/rtspdec.c