summaryrefslogtreecommitdiff
path: root/ext/standard/formatted_print.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-12-06 02:54:28 +0100
committerBob Weinand <bobwei9@hotmail.com>2015-12-06 02:54:28 +0100
commitaa8cac578e22e65ceda63d3518d696ccfc920494 (patch)
tree7dcda989fff65b311e63ad21275aa98ddb9353ee /ext/standard/formatted_print.c
parent559ede17e109adec5dadff3290090e7141ad40ae (diff)
downloadphp-git-aa8cac578e22e65ceda63d3518d696ccfc920494.tar.gz
Fix double free in formatted_print.c
Diffstat (limited to 'ext/standard/formatted_print.c')
-rw-r--r--ext/standard/formatted_print.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c
index 081dfc4a07..e206bb9225 100644
--- a/ext/standard/formatted_print.c
+++ b/ext/standard/formatted_print.c
@@ -518,9 +518,6 @@ php_formatted_print(zend_execute_data *execute_data, int use_array, int format_o
efree(newargs);
}
php_error_docref(NULL, E_WARNING, "Width must be greater than zero and less than %d", INT_MAX);
- if (newargs) {
- efree(newargs);
- }
return NULL;
}
adjusting |= ADJ_WIDTH;
@@ -540,9 +537,6 @@ php_formatted_print(zend_execute_data *execute_data, int use_array, int format_o
efree(newargs);
}
php_error_docref(NULL, E_WARNING, "Precision must be greater than zero and less than %d", INT_MAX);
- if (newargs) {
- efree(newargs);
- }
return NULL;
}
adjusting |= ADJ_PRECISION;