]> granicus.if.org Git - php/commitdiff
Do not try to free NULLs.
authorSascha Schumann <sas@php.net>
Sat, 25 Sep 1999 21:06:11 +0000 (21:06 +0000)
committerSascha Schumann <sas@php.net>
Sat, 25 Sep 1999 21:06:11 +0000 (21:06 +0000)
ext/session/session.c

index 9d9c498892d2784c586ec86ec6d6d1219c3299d0..704bd68bad79049e7db929ffe0f9c06359982a42 100644 (file)
@@ -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));
 }