Commit 5a0c1299 authored by aligungr's avatar aligungr

NTS memory leak fix

parent d6accb5b
......@@ -53,7 +53,7 @@ inline OctetString EncodeS(const asn_TYPE_descriptor_t &desc, T *pdu)
{
std::vector<uint8_t> v(encoded);
memcpy(v.data(), buffer, encoded);
free(buffer);
delete[] buffer;
return OctetString{std::move(v)};
}
return OctetString{};
......
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