execute_cmd.c (ss_execute_line): Fix memory leak; we weren't freeing
the argv array.
1999-11-19 <tytso@valinux.com>
+ * execute_cmd.c (ss_execute_line): Fix memory leak; we weren't
+ freeing the argv array.
+
* Makefile.in (distclean): Remove TAGS and Makefile.in.old from
the source directory.
char *line_ptr;
{
char **argv;
- int argc;
+ int argc, ret;
/* flush leading whitespace */
while (line_ptr[0] == ' ' || line_ptr[0] == '\t')
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);
}