From fb35a3c6f42c4918440b455f941fbb01d87268ad Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Fri, 20 Dec 2024 22:40:09 -0400 Subject: [PATCH] fix: dealloc error at script end (#504) --- a_sync/primitives/locks/semaphore.pyx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/a_sync/primitives/locks/semaphore.pyx b/a_sync/primitives/locks/semaphore.pyx index 7751912d..dfc54dde 100644 --- a/a_sync/primitives/locks/semaphore.pyx +++ b/a_sync/primitives/locks/semaphore.pyx @@ -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())