]> granicus.if.org Git - php/commitdiff
Plug leak which occurs in unicode mode
authorSara Golemon <pollita@php.net>
Thu, 6 Apr 2006 20:05:43 +0000 (20:05 +0000)
committerSara Golemon <pollita@php.net>
Thu, 6 Apr 2006 20:05:43 +0000 (20:05 +0000)
ext/standard/uniqid.c

index b9aa0ade71ef6a889678cb0abeedfad017a660f4..4f14bd42ccab45b20a6f25c10c6dd7df26609436 100644 (file)
@@ -81,7 +81,7 @@ PHP_FUNCTION(uniqid)
                spprintf(&uniqid, 0, "%s%08x%05x", prefix, sec, usec);
        }
 
-       RETURN_RT_STRING(uniqid, 0);
+       RETURN_RT_STRING(uniqid, ZSTR_AUTOFREE);
 }
 #endif
 /* }}} */