php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61594
Patch add_free_of_ps_mm_instance revision 2012-04-01 20:29 UTC by jlawall at hotmail dot com

Patch add_free_of_ps_mm_instance for Session related Bug #61594

Patch version 2012-04-01 20:29 UTC

Return to Bug #61594 | Download this patch
Patch Revisions:

Developer: jlawall@hotmail.com

diff --git a/ext/session/mod_mm.c b/ext/session/mod_mm.c
index b99dd82..11b4a3f 100644
--- a/ext/session/mod_mm.c
+++ b/ext/session/mod_mm.c
@@ -271,6 +271,8 @@ PHP_MINIT_FUNCTION(ps_mm)
 	}
 
 	if (!(euid_len = slprintf(euid, sizeof(euid), "%d", geteuid()))) {
+		free(ps_mm_instance);
+		ps_mm_instance = NULL;
 		return FAILURE;
 	}
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 20:01:31 2024 UTC