diff --git a/libretroshare/src/serialiser/rstlvbinary.cc b/libretroshare/src/serialiser/rstlvbinary.cc index 7eaa58ae2..9c84f6ec2 100644 --- a/libretroshare/src/serialiser/rstlvbinary.cc +++ b/libretroshare/src/serialiser/rstlvbinary.cc @@ -90,14 +90,11 @@ bool RsTlvBinaryData::setBinData(const void *data, uint32_t size) void RsTlvBinaryData::TlvClear() { - if (bin_data) - { - free(bin_data); - } + free(bin_data); TlvShallowClear(); } -void RsTlvBinaryData::TlvShallowClear() +void RsTlvBinaryData::TlvShallowClear() { bin_data = NULL; bin_len = 0;