Whamcloud - gitweb
debugfs: Fix miscellaneous memory leaks
authorTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jun 2009 07:52:30 +0000 (03:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jun 2009 07:54:59 +0000 (03:54 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/debugfs.c
debugfs/set_fields.c

index cf4b71f..94ffc6f 100644 (file)
@@ -2033,6 +2033,8 @@ int main(int argc, char **argv)
                ss_listen(sci_idx);
        }
 
+       ss_delete_invocation(sci_idx);
+
        if (current_fs)
                close_filesystem();
 
index b31377d..5f02472 100644 (file)
@@ -240,9 +240,10 @@ static struct field_set_info *find_field(struct field_set_info *fields,
                        if (strcmp(ss->name, field) != 0)
                                continue;
                }
+               free(arg);
                return ss;
        }
-
+       free(arg);
        return NULL;
 }