Re: [FFmpeg-devel] [PATCH 1/3] avformat/rtspdec: set dangling pointers to NULL

2020-10-11 Thread Andriy Gelman
On Sun, 11. Oct 21:28, Andreas Rheinhardt wrote: > Andriy Gelman: > > From: Andriy Gelman > > > > Otherwise a double free will occur in case rtsp_read_close() is called > > on error. > > > > Signed-off-by: Andriy Gelman > > --- > > libavformat/rtspdec.c | 3 ++- > > 1 file changed, 2 insertion

Re: [FFmpeg-devel] [PATCH 1/3] avformat/rtspdec: set dangling pointers to NULL

2020-10-11 Thread Andreas Rheinhardt
Andriy Gelman: > From: Andriy Gelman > > Otherwise a double free will occur in case rtsp_read_close() is called > on error. > > Signed-off-by: Andriy Gelman > --- > libavformat/rtspdec.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavformat/rtspdec.c b/libavfo

[FFmpeg-devel] [PATCH 1/3] avformat/rtspdec: set dangling pointers to NULL

2020-10-11 Thread Andriy Gelman
From: Andriy Gelman Otherwise a double free will occur in case rtsp_read_close() is called on error. Signed-off-by: Andriy Gelman --- libavformat/rtspdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index ef084a8b2b..b519