Commit cc1e3419 authored by Rusty Russell's avatar Rusty Russell

Don't leave _info.NNNN files lying arond

parent 41069549
......@@ -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);
......
......@@ -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)
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment