diff options
-rw-r--r-- | ext/ffi_c/DynamicLibrary.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ffi_c/DynamicLibrary.c b/ext/ffi_c/DynamicLibrary.c index 6c27ec6..bcbc8de 100644 --- a/ext/ffi_c/DynamicLibrary.c +++ b/ext/ffi_c/DynamicLibrary.c @@ -235,6 +235,9 @@ dl_error(char* buf, int size) // Update the passed in buffer snprintf(buf, size, "Failed with error %d: %s", error, message); + + // Free the allocated message + LocalFree(message); } #endif |