diff options
Diffstat (limited to 'src/util/ss/execute_cmd.c')
-rw-r--r-- | src/util/ss/execute_cmd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/util/ss/execute_cmd.c b/src/util/ss/execute_cmd.c index 5fb0cad968..3f684052ca 100644 --- a/src/util/ss/execute_cmd.c +++ b/src/util/ss/execute_cmd.c @@ -189,7 +189,7 @@ int ss_execute_line (sci_idx, line_ptr) char *line_ptr; { char **argv; - int argc; + int argc, ret; /* flush leading whitespace */ while (line_ptr[0] == ' ' || line_ptr[0] == '\t') @@ -212,5 +212,9 @@ int ss_execute_line (sci_idx, line_ptr) return 0; /* look it up in the request tables, execute if found */ - return really_execute_command (sci_idx, argc, &argv); + ret = really_execute_command (sci_idx, argc, &argv); + + free(argv); + + return(ret); } |