Skip to content

Commit

Permalink
fix: dealloc error at script end (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 21, 2024
1 parent 9cdf0ac commit fb35a3c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions a_sync/primitives/locks/semaphore.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,6 @@ cdef class DummySemaphore(Semaphore):
# Copy the bytes data into the char*
strcpy(self._name, encoded_name)

def __dealloc__(self):
# Free the memory allocated for _name
if self._name is not NULL:
free(self._name)

def __repr__(self) -> str:
return "<{} name={}>".format(self.__class__.__name__, self.decode_name())

Expand Down

0 comments on commit fb35a3c

Please sign in to comment.