Bug#305468: libdbd-pg-perl leaks memory when using execute()

2005-04-22 Thread Raphael Hertzog
Le vendredi 22 avril 2005 à 02:07 -0700, Kevin Brown a écrit : > Okay, I've tracked this one down. The offending line is 1547, which > reads: > > currph->quoted = currph->bind_type->quote(currph->value, > currph->valuelen, &currph->quotedlen); > > This is never freed prior to re-assignment.

Bug#305468: libdbd-pg-perl leaks memory when using execute()

2005-04-22 Thread Kevin Brown
Raphael Hertzog wrote: > Le vendredi 22 avril 2005 ? 02:07 -0700, Kevin Brown a ?crit : > > Okay, I've tracked this one down. The offending line is 1547, which > > reads: > > > > currph->quoted = currph->bind_type->quote(currph->value, > > currph->valuelen, &currph->quotedlen); > > > > This

Bug#305468: libdbd-pg-perl leaks memory when using execute()

2005-04-22 Thread Kevin Brown
Okay, I've tracked this one down. The offending line is 1547, which reads: currph->quoted = currph->bind_type->quote(currph->value, currph->valuelen, &currph->quotedlen); This is never freed prior to re-assignment. The fix is to add: if (currph->quoted) Safefree(currph->quoted); rig

Bug#305468: libdbd-pg-perl leaks memory when using execute()

2005-04-19 Thread Kevin Brown
Package: libdbd-pg-perl Version: 1.41-1 Severity: important libdbd-pg-perl leaks memory when using the execute() statement handle method. Attached is a program that clearly illustrates the problem. Simply run it (subsitute whatever you need in the connect string) and, using 'top', watch as it ea