Skip to content

Commit dcc3978

Browse files
author
ushiboy
committed
Removed guard
1 parent f8a70c6 commit dcc3978

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

libraries/BLE/src/BLERemoteCharacteristic.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ BLERemoteCharacteristic::BLERemoteCharacteristic(
5252
*/
5353
BLERemoteCharacteristic::~BLERemoteCharacteristic() {
5454
removeDescriptors(); // Release resources for any descriptor information we may have allocated.
55-
if (m_rawData != nullptr)
56-
{
57-
free(m_rawData);
58-
}
55+
free(m_rawData);
5956
} // ~BLERemoteCharacteristic
6057

6158

0 commit comments

Comments
 (0)