diff options
author | Nikita Popov <nikic@php.net> | 2015-07-17 16:49:34 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-07-17 16:53:07 +0200 |
commit | 20e5027293bf8711bc4f6cabd8f304ca5b127690 (patch) | |
tree | 5fba6e5f890a6fb50c398b95237f2bea570978d4 /sapi/phpdbg/phpdbg_frame.c | |
parent | 75dc4486b2b95989f62717da4feca8ebe4bbb528 (diff) | |
download | php-git-20e5027293bf8711bc4f6cabd8f304ca5b127690.tar.gz |
Switch asprintf to spprintf in phpdbg opcode dump
Also use %td where appropriate, a lot of the values are ptrdiff
based.
Fix a leak in phpdbg_frame.c.
Diffstat (limited to 'sapi/phpdbg/phpdbg_frame.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_frame.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_frame.c b/sapi/phpdbg/phpdbg_frame.c index 189b3b20fa..4f0e5e88b0 100644 --- a/sapi/phpdbg/phpdbg_frame.c +++ b/sapi/phpdbg/phpdbg_frame.c @@ -164,7 +164,11 @@ static void phpdbg_dump_prototype(zval *tmp) /* {{{ */ } ++j; - php_printf("%s", phpdbg_short_zval_print(argstmp, 40)); + { + char *arg_print = phpdbg_short_zval_print(argstmp, 40); + php_printf("%s", arg_print); + efree(arg_print); + } phpdbg_xml("</arg>"); } ZEND_HASH_FOREACH_END(); |