Skip to content

Commit 4c71120

Browse files
author
Yasuo Ohgaki
committed
Set NULL after efree
1 parent b35c02e commit 4c71120

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/session/mod_files.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ PS_CLOSE_FUNC(files)
325325

326326
if (data->lastkey) {
327327
efree(data->lastkey);
328+
data->lastkey = NULL;
328329
}
329330

330331
efree(data->basedir);

0 commit comments

Comments
 (0)