Skip to content

6.4.2: Fix the fix.

Compare
Choose a tag to compare
@jtv jtv released this 22 Mar 23:46
· 1649 commits to master since this release

Well, that fix for a memory leak in 6.4.1 wasn't quite perfect. Yes, the memory got freed. But not in quite the right way for Windows, where you can't allocate memory in one DLL (in this case libpq) and free it in another (here, libpqxx). If you are using Windows, unescaping binary data in 6.4.1 will probably crash, and 6.4.2 should fix it. If you are not on Windows, or are not calling esc_raw, you shouldn't notice any difference.

Thanks @egorpugin for spotting the problem and pointing it out so quickly!