[vlc-commits] hds: fix stale pointer
Rémi Denis-Courmont
git at videolan.org
Wed Aug 20 20:30:09 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 20 21:29:55 2014 +0300| [230ba3f408f8095e1d62745aa26aa46373f23f06] | committer: Rémi Denis-Courmont
hds: fix stale pointer
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=230ba3f408f8095e1d62745aa26aa46373f23f06
---
modules/stream_filter/hds/hds.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c
index af3181d..bc2c4aa 100644
--- a/modules/stream_filter/hds/hds.c
+++ b/modules/stream_filter/hds/hds.c
@@ -762,6 +762,8 @@ static uint8_t* download_chunk( stream_t *s,
msg_Err( s, "Requested %"PRIi64" bytes, "\
"but only got %d", size, read );
data = realloc( chunk->data, read );
+ if( data != NULL )
+ chunk->data = data;
chunk->failed = true;
return NULL;
}
More information about the vlc-commits
mailing list