]> granicus.if.org Git - php/commitdiff
There is memleak
authorXinchen Hui <laruence@php.net>
Thu, 8 May 2014 14:01:50 +0000 (22:01 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 8 May 2014 14:01:50 +0000 (22:01 +0800)
ext/skeleton/skeleton.c

index 3ba85d96a25c414bf926d2aee84e63b905281b97..ef5aed4bff5f2453bd2c3d6565ac5c18efe541f9 100644 (file)
@@ -44,7 +44,9 @@ PHP_FUNCTION(confirm_extname_compiled)
        }
 
        len = spprintf(&strg, 0, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "extname", arg);
-       RETURN_STRINGL(strg, len);
+
+       RETVAL_STRINGL(strg, len);
+       efree(strg);
 }
 /* }}} */
 /* The previous line is meant for vim and emacs, so it can correctly fold and