Mysql library glue uses incorrect memory management
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3577
Reported by Stephen R. van den Berg, Cubic Circle srb@cuci.nl
This bug has been discussed at length on the Pike mailinglist. It was confirmed by the designer of the sql-library-interface that this patch indeed fixes a flaw in the implementation of the mysql-glue. It was also noted that quite some implementations (wrongly) seem to depend on the misguided old behaviour of the lib. Consensus was that there might be a need to have a bug-compatibility flag to reinstate the old behaviour.