]> granicus.if.org Git - php/commitdiff
- Fixed bug #61594 (ext/session/mod_mm.c: missing free of ps_mm_instance) patch by...
authorFelipe Pena <felipensp@gmail.com>
Mon, 24 Jun 2013 19:49:15 +0000 (16:49 -0300)
committerFelipe Pena <felipensp@gmail.com>
Mon, 24 Jun 2013 19:49:15 +0000 (16:49 -0300)
ext/session/mod_mm.c

index e5406d0bcb8e4381ee1c3a959fcc54af2ef7e848..e0d16d1924e83a887cd7d17ab962d4e52e4ba576 100644 (file)
@@ -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;
        }