diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-08-14 15:37:14 +1000 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-08-14 15:37:14 +1000 |
commit | cc1e3419b6c5e4abf1b99b0094bc3e134356525e (patch) | |
tree | bca5b5f62ce4842cd3a57cd31e23c2c4dd611329 | |
parent | 41069549813a04a2875063cb12e8057f5d54d7f1 (diff) |
Don't leave _info.NNNN files lying arond
-rw-r--r-- | tools/create_dep_tar.c | 2 | ||||
-rw-r--r-- | tools/namespacize.c | 3 | ||||
-rw-r--r-- | tools/run_tests.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/tools/create_dep_tar.c b/tools/create_dep_tar.c index 09c331c6..74fdb569 100644 --- a/tools/create_dep_tar.c +++ b/tools/create_dep_tar.c @@ -81,7 +81,7 @@ int main(int argc, char *argv[]) printf("creating tar ball of \"%s\"\n", argv[1]); /* creating tar of the module dependencies */ - deps = get_deps(NULL, argv[1]); + deps = get_deps(talloc_autofree_context(), argv[1]); if (deps != NULL) create_tar(deps, argv[1], argv[2]); talloc_free(deps); diff --git a/tools/namespacize.c b/tools/namespacize.c index 759ef938..3b7113c4 100644 --- a/tools/namespacize.c +++ b/tools/namespacize.c @@ -476,7 +476,7 @@ static char *parent_dir(const void *ctx, const char *dir) static void adjust_dir(const char *dir) { - char *parent = parent_dir(NULL, dir); + char *parent = parent_dir(talloc_autofree_context(), dir); char **deps; verbose("Adjusting %s\n", dir); @@ -497,6 +497,7 @@ static void adjust_dir(const char *dir) talloc_free(depdir); } verbose_unindent(); + talloc_free(parent); } static void adjust_dependents(const char *dir) diff --git a/tools/run_tests.c b/tools/run_tests.c index eab42add..b9a6f66c 100644 --- a/tools/run_tests.c +++ b/tools/run_tests.c @@ -106,7 +106,7 @@ static int build(const char *dir, const char *name, int fail) char *externals = talloc_strdup(name, ""); char **deps; - for (deps = get_deps(objs, dir); *deps; deps++) { + for (deps = get_deps(talloc_autofree_context(), dir); *deps; deps++) { if (!strstarts(*deps, "ccan/")) continue; |