Skip to content

Commit

Permalink
8292778: EncodingSupport_md.c convertUtf8ToPlatformString wrong placi…
Browse files Browse the repository at this point in the history
…ng of free

Backport-of: 996c0e9317ae9ff0b4ad88d4d050caf2ecf64811
  • Loading branch information
MBaesken committed Dec 1, 2022
1 parent 31666ec commit 0bf122c
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -76,8 +76,8 @@ convertUft8ToPlatformString(char* utf8_str, int utf8_len, char* platform_str, in
if (plen >= 0) {
platform_str[plen] = '\0';
}
free(wstr);
}
free(wstr);
}
}
return plen;
Expand Down

1 comment on commit 0bf122c

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.