Bug #73051 free_defaults export is missing in libmysql.dll
Submitted: 19 Jun 2014 12:47 Modified: 25 Jun 2014 9:03
Reporter: Mike Lischke Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.6 OS:Microsoft 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] Umesh Shastry
Hello Mike,

Thank you for the report.
Verified as described.

Thanks,
Umesh
[25 Jun 2014 9:09] Umesh Shastry
How to repeat:

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

dumpbin.exe /EXPORTS "/path/to/libmysql.dll"