diff options
author | Joshua Rogers <git@internot.info> | 2015-01-27 09:28:54 +1100 |
---|---|---|
committer | Joshua Rogers <git@internot.info> | 2015-01-27 09:28:54 +1100 |
commit | 305c03e75782fe39aaa71fc8a8983a8110b13beb (patch) | |
tree | ef8ba79d69a8f86b08c398f521b2f7a6ef064ec8 /sapi/phpdbg/phpdbg_prompt.c | |
parent | 5845f2c0c116accac6bdd60a6b35ff05aa604ca5 (diff) | |
download | php-git-305c03e75782fe39aaa71fc8a8983a8110b13beb.tar.gz |
Use correct deallocator in phpdbg
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_prompt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index 198020d365..cb03b1a287 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -876,7 +876,7 @@ PHPDBG_COMMAND(sh) /* {{{ */ FILE *fd = NULL; if ((fd=VCWD_POPEN((char*)param->str, "w"))) { /* TODO: do something perhaps ?? do we want input ?? */ - fclose(fd); + pclose(fd); } else { phpdbg_error("sh", "type=\"failure\" smd=\"%s\"", "Failed to execute %s", param->str); } |