diff options
author | Sascha Schumann <sas@php.net> | 1999-09-25 21:06:11 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-09-25 21:06:11 +0000 |
commit | 7922481919fc8cf16898b56b392248bfc898c2d8 (patch) | |
tree | 5b6cdc16daf2c2e30f07b4d638e24ba4bbaddbd5 | |
parent | b5524a0981fae475d45647d55272b8e16b37db76 (diff) | |
download | php-git-7922481919fc8cf16898b56b392248bfc898c2d8.tar.gz |
Do not try to free NULLs.
-rw-r--r-- | ext/session/session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 9d9c498892..704bd68bad 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -871,10 +871,10 @@ static void php_rshutdown_session_globals(PSLS_D) { if(PS(mod_data)) PS(mod)->close(&PS(mod_data)); - efree(PS(entropy_file)); - efree(PS(extern_referer_chk)); - efree(PS(save_path)); - efree(PS(session_name)); + if(PS(entropy_file)) efree(PS(entropy_file)); + if(PS(extern_referer_chk)) efree(PS(extern_referer_chk)); + if(PS(save_path)) efree(PS(save_path)); + if(PS(session_name)) efree(PS(session_name)); if(PS(id)) efree(PS(id)); zend_hash_destroy(&PS(vars)); } |