Skip to content

Commit 4176306

Browse files
committed
ext/session: Fix memory leak
1 parent 1fe14a3 commit 4176306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/session/mod_files.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ PS_CLOSE_FUNC(files)
451451

452452
zend_string_release_ex(data->basedir, /* persistent */ false);
453453
efree(data);
454-
PS_SET_MOD_DATA(data);
454+
PS_SET_MOD_DATA(NULL);
455455

456456
return SUCCESS;
457457
}

0 commit comments

Comments
 (0)