Commit cacb1931 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: smooth: fix mismatched free

parent 5f1dec1a
......@@ -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++)
......
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