Skip to content

Commit

Permalink
Merge branch 'release/0.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcais committed Jan 27, 2025
2 parents 9d5b66a + 4944945 commit 2f4e61f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([compact_vector],[0.1.2],[[email protected]])
AC_INIT([compact_vector],[0.1.3],[[email protected]])
AC_CONFIG_AUX_DIR([build-aux])
AM_SILENT_RULES([yes])
AC_CONFIG_SRCDIR([include/compact_vector.hpp])
Expand Down
4 changes: 3 additions & 1 deletion include/compact_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ class vector {
: vector(0, 0, allocator)
{ }
~vector() {
m_allocator.deallocate(m_mem, elements_to_words(m_capacity, bits()));
if (m_mem) {
m_allocator.deallocate(m_mem, elements_to_words(m_capacity, bits()));
}
}

vector& operator=(const vector& rhs) {
Expand Down

0 comments on commit 2f4e61f

Please sign in to comment.