Plug leak which occurs in unicode mode

This commit is contained in:
Sara Golemon 2006-04-06 20:05:43 +00:00
parent b6f62cabff
commit 5a9feaa6b1

View 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
/* }}} */