Commit cacb1931 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: smooth: fix mismatched free

parent 5f1dec1a
...@@ -71,7 +71,7 @@ ForgedInitSegment::~ForgedInitSegment() ...@@ -71,7 +71,7 @@ ForgedInitSegment::~ForgedInitSegment()
static uint8_t *HexDecode(const std::string &s, size_t *decoded_size) static uint8_t *HexDecode(const std::string &s, size_t *decoded_size)
{ {
*decoded_size = s.size() / 2; *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) if(data)
{ {
for(size_t i=0; i<*decoded_size; i++) for(size_t i=0; i<*decoded_size; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment