Commit 5ed354ee authored by Jan Koniarik's avatar Jan Koniarik
Browse files

fixed memory leak in tests

parent 5cff8214
Pipeline #98106 passed with stage
in 48 seconds
......@@ -20,8 +20,11 @@ inline std::ostream& operator<<( std::ostream& os, const protocol_test_fixture&
template < typename T >
inline std::string pretty_name()
{
int tmp = 0;
return abi::__cxa_demangle( typeid( T ).name(), nullptr, nullptr, &tmp );
int tmp = 0;
char* name = abi::__cxa_demangle( typeid( T ).name(), nullptr, nullptr, &tmp );
std::string res{ name };
free( name );
return res;
}
template < protocol_endianess_enum Endianess, typename T >
......
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