]> git.ozlabs.org Git - ccan/commitdiff
Don't leave _info.NNNN files lying arond
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 14 Aug 2008 05:37:14 +0000 (15:37 +1000)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 14 Aug 2008 05:37:14 +0000 (15:37 +1000)
tools/create_dep_tar.c
tools/namespacize.c
tools/run_tests.c

index 09c331c6f7a09be8f3100bb9a177eb1aec5d3035..74fdb5692461a3976b799ab1797b67d9ccd6dfe4 100644 (file)
@@ -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 */
        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);
        if (deps != NULL)
                create_tar(deps, argv[1], argv[2]);
        talloc_free(deps);
index 759ef938482f98a3b3aabd267f7e79c2fe56962d..3b7113c4302a7a6fc50eaf8524d388c20fb65ba2 100644 (file)
@@ -476,7 +476,7 @@ static char *parent_dir(const void *ctx, const char *dir)
 
 static void adjust_dir(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);
        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(depdir);
        }
        verbose_unindent();
+       talloc_free(parent);
 }
 
 static void adjust_dependents(const char *dir)
 }
 
 static void adjust_dependents(const char *dir)
index eab42add8dfb06a6cf623181d37a30a7b3811298..b9a6f66c4cd910acf6d4db0ff6f13e16be86b726 100644 (file)
@@ -106,7 +106,7 @@ static int build(const char *dir, const char *name, int fail)
        char *externals = talloc_strdup(name, "");
        char **deps;
 
        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;
 
                if (!strstarts(*deps, "ccan/"))
                        continue;