summaryrefslogtreecommitdiff
path: root/ext/skeleton
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-05-08 22:01:50 +0800
committerXinchen Hui <laruence@php.net>2014-05-08 22:01:50 +0800
commit979c665f21dc9a75cddbcb30726b2f1325fb67e1 (patch)
treec8606ef83de29b2a43548fa6978fafe31dc03175 /ext/skeleton
parentebaee948d9b565b6af5b76aec2edf21ddce1de51 (diff)
downloadphp-git-979c665f21dc9a75cddbcb30726b2f1325fb67e1.tar.gz
There is memleak
Diffstat (limited to 'ext/skeleton')
-rw-r--r--ext/skeleton/skeleton.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/skeleton/skeleton.c b/ext/skeleton/skeleton.c
index 3ba85d96a2..ef5aed4bff 100644
--- a/ext/skeleton/skeleton.c
+++ b/ext/skeleton/skeleton.c
@@ -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