Skip to content

Commit 1a2618b

Browse files
committed
avoid memory error
1 parent 99a1414 commit 1a2618b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

phpdbg_cmd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ static inline phpdbg_input_t** phpdbg_read_argv(char *buffer, int *argc TSRMLS_D
201201
if ((*argc) == 0) {
202202
/* not needed */
203203
efree(argv);
204+
205+
/* to be sure */
206+
return NULL;
204207
}
205208

206209
return argv;

0 commit comments

Comments
 (0)