summaryrefslogtreecommitdiff
path: root/phpdbg_prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'phpdbg_prompt.c')
-rw-r--r--phpdbg_prompt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 84b1838929..0e79e51cc6 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -149,7 +149,7 @@ next_line:
}
if (free_init) {
- free(init_file);
+ efree(init_file);
}
}
} /* }}} */
@@ -176,7 +176,7 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default TS
if (i != -1) {
scan_dir[i] = 0;
}
- init_file = malloc(strlen(scan_dir) + sizeof(PHPDBG_INIT_FILENAME));
+ init_file = emalloc(strlen(scan_dir) + sizeof(PHPDBG_INIT_FILENAME));
sprintf(init_file, "%s/%s", scan_dir, PHPDBG_INIT_FILENAME);
phpdbg_try_file_init(init_file, strlen(init_file), 1 TSRMLS_CC);
if (i == -1) {