diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2023-04-20 09:56:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 09:56:00 +0200 |
commit | bb18bb4d3c09b4f6e492a6483786bf7ebea03007 (patch) | |
tree | ba99f3770be0c00474b6fd3d3fdd1757ffdee3cc | |
parent | a17aeb88c98a51ddfaff1f85e91612a105c088c5 (diff) | |
parent | 03b8801d00463722e65ba9fd14992945f2c482cb (diff) | |
download | ffi-bb18bb4d3c09b4f6e492a6483786bf7ebea03007.tar.gz |
Merge pull request #1027 from cfis/master
Free Allocated Buffer
-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 |