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: ad2e0c4df045261c04b00bfa1faf5c21392edc58
  • Loading branch information
MBaesken committed Oct 26, 2022
1 parent 5de8b9c commit 996c0e9
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

2 comments on commit 996c0e9

@MBaesken
Copy link
Member Author

Choose a reason for hiding this comment

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

/backport jdk11u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on 996c0e9 Nov 25, 2022

Choose a reason for hiding this comment

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

@MBaesken the backport was successfully created on the branch MBaesken-backport-996c0e93 in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 996c0e93 from the openjdk/jdk17u repository.

The commit being backported was authored by Matthias Baesken on 26 Oct 2022 and had no reviewers.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk11u-dev:

$ git fetch https://github.com/openjdk-bots/jdk11u-dev MBaesken-backport-996c0e93:MBaesken-backport-996c0e93
$ git checkout MBaesken-backport-996c0e93
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk11u-dev MBaesken-backport-996c0e93

Please sign in to comment.