cvs: /php4/ext/standard string.c
| From: | Jouni Ahto | Date: | Wed, 05 Jan 2000 12:27:12 +0000 |
| Subject: | cvs: /php4/ext/standard string.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-8924@lists.php.net to get a copy of this message | ||
jah Wed Jan 5 07:27:12 2000 EDT
Modified files:
/php4/ext/standard string.c
Log:
(php_setlocale) Fixed memory leak (bug #3105).
# Must have been thinking something else when originally wrote this.
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.85 php4/ext/standard/string.c:1.86
--- php4/ext/standard/string.c:1.85 Tue Jan 4 04:45:28 2000
+++ php4/ext/standard/string.c Wed Jan 5 07:26:41 2000
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.85 2000/01/04 09:45:28 thies Exp $ */
+/* $Id: string.c,v 1.86 2000/01/05 12:26:41 jah Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -2099,7 +2099,7 @@
/* Remember if locale was changed */
if (loc) {
STR_FREE(BG(locale_string));
- BG(strtok_string) = estrdup(retval);
+ BG(locale_string) = estrdup(retval);
}
RETVAL_STRING(retval,1);