Author: turnstep
Date: Thu Nov 30 20:24:10 2006
New Revision: 8336
Modified:
DBD-Pg/trunk/Changes
DBD-Pg/trunk/quote.c
Log:
Another memory leak, fixed by Stephen Marshall
Modified: DBD-Pg/trunk/Changes
==============================================================================
--- DBD-Pg/trunk/Changes (original)
+++ DBD-Pg/trunk/Changes Thu Nov 30 20:24:10 2006
@@ -3,8 +3,8 @@
1.50
- Switch from cvs to subversion. Switch from gborg to perl.org.
- Fix pg_description join in table_info(). [Max Cohan [EMAIL PROTECTED]
- - Fix memory leak in pg_notifies. [Stephen Marshall [EMAIL PROTECTED]
- (CPAN bug #21380)
+ - Fix memory leak in bytea quoting. (CPAN bug #21392). Fix memory leak
+ in pg_notifies. [Stephen Marshall [EMAIL PROTECTED]
1.49 May 7, 2006
- Thanks to Backcountry.com for sponsoring work on this release. [GSM]
Modified: DBD-Pg/trunk/quote.c
==============================================================================
--- DBD-Pg/trunk/quote.c (original)
+++ DBD-Pg/trunk/quote.c Thu Nov 30 20:24:10 2006
@@ -305,8 +305,6 @@
if (NULL == string)
return;
- New(0, result, strlen((char *)string)+1, unsigned char);
-
result = string;
while (*string != '\0') {
@@ -334,7 +332,6 @@
}
}
result = '\0';
- Renew(result, (*retlen), unsigned char);
string = result - (*retlen);
return;
}