diff options
author | Xinchen Hui <laruence@php.net> | 2015-01-08 16:32:20 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-01-08 16:32:20 +0800 |
commit | 777c39f4042327eac4b63c7ee87dc1c7a09a3115 (patch) | |
tree | c02b63c6478a85a24c20ca7fcdac6db1c124b462 /ext/opcache/zend_shared_alloc.c | |
parent | 7ebdc8d70d7617f2c3353b027663ef54a24a2248 (diff) | |
download | php-git-777c39f4042327eac4b63c7ee87dc1c7a09a3115.tar.gz |
Fixed #68677
Diffstat (limited to 'ext/opcache/zend_shared_alloc.c')
-rw-r--r-- | ext/opcache/zend_shared_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c index 4036abe06f..48c16abb9c 100644 --- a/ext/opcache/zend_shared_alloc.c +++ b/ext/opcache/zend_shared_alloc.c @@ -344,10 +344,10 @@ void *_zend_shared_memdup(void *source, size_t size, zend_bool free_source) retval = ZCG(mem); ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size)); memcpy(retval, source, size); + zend_shared_alloc_register_xlat_entry(source, retval); if (free_source) { efree(source); } - zend_shared_alloc_register_xlat_entry(source, retval); return retval; } |