Skip to content

Commit 0a2b18a

Browse files
committed
Fix memory leak
1 parent acfe2f7 commit 0a2b18a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/async++/aligned_alloc.h

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class aligned_array {
4949
} LIBASYNC_CATCH(...) {
5050
for (std::size_t j = 0; j < i; j++)
5151
ptr[i].~T();
52+
aligned_free(ptr);
5253
LIBASYNC_RETHROW();
5354
}
5455
}

0 commit comments

Comments
 (0)