Bug #73051 free_defaults export is missing in libmysql.dll

Submitted: 19 Jun 2014 12:47 Modified: 14 Oct 2025 11:31
Reporter: Mike Lischke Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.6 OS:Windows
Assigned to: CPU Architecture:Any

[19 Jun 2014 12:47] Mike Lischke
Description:
The client library libmysql.dll exports load_defaults() to be used by applications. However the clean up function free_defaults() is not exported, making it so impossible to clean up properly after calling load_defaults().

How to repeat:
Use any tool that can show you the exports of a dll (e.g. Dependency Walker) or write a little app that uses free_defaults() to see a linker error comming up.

Suggested fix:
Add free_defaults() to the export list as well.
[25 Jun 2014 9:03] MySQL Verification Team
Hello Mike,

Thank you for the report.
Verified as described.

Thanks,
Umesh
[25 Jun 2014 9:09] MySQL Verification Team
How to repeat:

Use "Dependency Walker" as suggested by Mike or just below:

dumpbin.exe /EXPORTS "/path/to/libmysql.dll"
[14 Oct 2025 11:31] Georgi Kodinov
Posted by developer:
 
Fixed in 8.0 by changing load_defaults to use a memroot and abolishing free_defaults()

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.