Skip to content

Commit 777c39f

Browse files
committed
Fixed #68677
1 parent 7ebdc8d commit 777c39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/zend_shared_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ void *_zend_shared_memdup(void *source, size_t size, zend_bool free_source)
344344
retval = ZCG(mem);
345345
ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size));
346346
memcpy(retval, source, size);
347+
zend_shared_alloc_register_xlat_entry(source, retval);
347348
if (free_source) {
348349
efree(source);
349350
}
350-
zend_shared_alloc_register_xlat_entry(source, retval);
351351
return retval;
352352
}
353353

0 commit comments

Comments
 (0)