]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
plug a leak
authorMarc Horowitz <marc@mit.edu>
Tue, 6 Oct 1998 06:38:19 +0000 (06:38 +0000)
committerMarc Horowitz <marc@mit.edu>
Tue, 6 Oct 1998 06:38:19 +0000 (06:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10964 dc483132-0cff-0310-8789-dd5450dbe970

src/util/ss/execute_cmd.c

index 5fb0cad9688f0958b1ed87efc5df0d90b6ec0722..3f684052ca9c6ef0388a8971eb713680e03954fe 100644 (file)
@@ -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);
 }