Skip to content

Commit ba14232

Browse files
authored
Fixing mem leak. (simdjson#461)
1 parent 1cdf558 commit ba14232

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/simdjson/padded_string.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ struct padded_string final {
7373
}
7474

7575
padded_string &operator=(padded_string &&o) {
76+
aligned_free_char(data_ptr);
7677
data_ptr = o.data_ptr;
7778
viable_size = o.viable_size;
7879
o.data_ptr = nullptr; // we take ownership

0 commit comments

Comments
 (0)