diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dl/cptr.c | 1 | ||||
-rw-r--r-- | ext/dl/handle.c | 1 | ||||
-rw-r--r-- | ext/fiddle/handle.c | 1 | ||||
-rw-r--r-- | ext/fiddle/pointer.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c index 62ab3895b2..7a82c7c3e0 100644 --- a/ext/dl/cptr.c +++ b/ext/dl/cptr.c @@ -49,6 +49,7 @@ dlptr_free(void *ptr) (*(data->free))(data->ptr); } } + xfree(ptr); } static size_t diff --git a/ext/dl/handle.c b/ext/dl/handle.c index ef182e816f..6b90e089ee 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -38,6 +38,7 @@ dlhandle_free(void *ptr) if( dlhandle->ptr && dlhandle->open && dlhandle->enable_close ){ dlclose(dlhandle->ptr); } + xfree(ptr); } static size_t diff --git a/ext/fiddle/handle.c b/ext/fiddle/handle.c index 330dbafe67..36970a2248 100644 --- a/ext/fiddle/handle.c +++ b/ext/fiddle/handle.c @@ -40,6 +40,7 @@ fiddle_handle_free(void *ptr) if( fiddle_handle->ptr && fiddle_handle->open && fiddle_handle->enable_close ){ dlclose(fiddle_handle->ptr); } + xfree(ptr); } static size_t diff --git a/ext/fiddle/pointer.c b/ext/fiddle/pointer.c index 0a914dd4a9..a09daf77ea 100644 --- a/ext/fiddle/pointer.c +++ b/ext/fiddle/pointer.c @@ -65,6 +65,7 @@ fiddle_ptr_free(void *ptr) (*(data->free))(data->ptr); } } + xfree(ptr); } static size_t |