Skip to content

Commit

Permalink
Ole32Wrapper was not freeing its allocated memory in getFolder(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-waldenberg committed Feb 24, 2023
1 parent 77a2249 commit 1a76cfb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static GUID getFolder(KnownFolders.GUIDHolder holder) throws WindowsExcep
);

final int status = Ole32Wrapper.IIDFromString(guidString, holder.getGuid());
UnmanagedMemory.free(guidString);

if (status != 0) {
throw new WindowsException(String.format("Failed to find GUID for %s",
Expand Down

0 comments on commit 1a76cfb

Please sign in to comment.