8292778: EncodingSupport_md.c convertUtf8ToPlatformString wrong placing of free
Reviewed-by: rriggs, kevinw, amenkov
This commit is contained in:
parent
13c0369646
commit
ad2e0c4df0
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2021, 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
|
||||
@ -76,8 +76,8 @@ convertUtf8ToPlatformString(char* utf8_str, int utf8_len, char* platform_str, in
|
||||
if (plen >= 0) {
|
||||
platform_str[plen] = '\0';
|
||||
}
|
||||
free(wstr);
|
||||
}
|
||||
free(wstr);
|
||||
}
|
||||
}
|
||||
return plen;
|
||||
|
Loading…
x
Reference in New Issue
Block a user