We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c339d52 commit 35f6f9bCopy full SHA for 35f6f9b
ext/opcache/ZendAccelerator.c
@@ -2370,6 +2370,11 @@ static void accel_deactivate(void)
2370
*/
2371
TSRMLS_FETCH();
2372
2373
+ if (ZCG(cwd)) {
2374
+ efree(ZCG(cwd));
2375
+ ZCG(cwd) = NULL;
2376
+ }
2377
+
2378
if (!ZCG(enabled) || !accel_startup_ok) {
2379
return;
2380
}
@@ -2383,12 +2388,6 @@ static void accel_deactivate(void)
2383
2388
zend_accel_fast_shutdown(TSRMLS_C);
2384
2389
2385
2390
#endif
2386
-
2387
- if (ZCG(cwd)) {
- efree(ZCG(cwd));
- ZCG(cwd) = NULL;
- }
2391
2392
2393
2394
static int accelerator_remove_cb(zend_extension *element1, zend_extension *element2)
0 commit comments