mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Plug leak which occurs in unicode mode
This commit is contained in:
parent
b6f62cabff
commit
5a9feaa6b1
@ -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
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user