[vlc-commits] demux: smooth: fix mismatched free

Francois Cartegnie git at videolan.org
Wed Nov 18 11:51:21 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 17 21:14:06 2015 +0100| [cacb19317343bd3b0ecd127736c12133563601f3] | committer: Francois Cartegnie

demux: smooth: fix mismatched free

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cacb19317343bd3b0ecd127736c12133563601f3
---

 modules/demux/smooth/playlist/ForgedInitSegment.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/smooth/playlist/ForgedInitSegment.cpp b/modules/demux/smooth/playlist/ForgedInitSegment.cpp
index f239f30..91d4f16 100644
--- a/modules/demux/smooth/playlist/ForgedInitSegment.cpp
+++ b/modules/demux/smooth/playlist/ForgedInitSegment.cpp
@@ -71,7 +71,7 @@ ForgedInitSegment::~ForgedInitSegment()
 static uint8_t *HexDecode(const std::string &s, size_t *decoded_size)
 {
     *decoded_size = s.size() / 2;
-    uint8_t *data = new (std::nothrow) uint8_t[*decoded_size];
+    uint8_t *data = (uint8_t *) malloc(*decoded_size);
     if(data)
     {
         for(size_t i=0; i<*decoded_size; i++)



More information about the vlc-commits mailing list