Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19f3130

Browse files
authored
fix alloc-dealloc-mismatch for _storage.str.data (BehaviorTree#518)
Signed-off-by: Alberto Soragna <[email protected]>
1 parent 9df1b38 commit 19f3130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/behaviortree_cpp/utils/simple_string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class SimpleString {
5353
~SimpleString()
5454
{
5555
if (!isSOO()) {
56-
delete _storage.str.data;
56+
delete[] _storage.str.data;
5757
}
5858
_storage.soo.capacity_left = CAPACITY;
5959
}

0 commit comments

Comments
 (0)