[2.7] bpo-25943: Fix potential heap corruption in bsddb's _db_associateCallback() by ZackerySpytz · Pull Request #8337 · python/cpython

@ZackerySpytz

…teCallback()

There was a missing check for integer overflow, several function calls
were not checked for failure, and allocated memory was not freed if an
error occurred.

serhiy-storchaka