X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fparser.c;h=fbf31b2806060009a4d136906fc5b03be64917dc;hb=90cd56cb816e7045b41542c119f64b9ee349a6bc;hp=7833981ae3785d11aa072066f4aa834ae3a4acbc;hpb=052961eb2e8279f103c091e850c317da335c0207;p=petitboot diff --git a/discover/parser.c b/discover/parser.c index 7833981..fbf31b2 100644 --- a/discover/parser.c +++ b/discover/parser.c @@ -25,7 +25,7 @@ static char *local_path(struct discover_context *ctx, struct discover_device *dev, const char *filename) { - return join_paths(ctx, dev->mount_path, filename); + return join_paths(ctx, dev->root_path, filename); } int parser_request_file(struct discover_context *ctx, @@ -62,6 +62,7 @@ int parser_check_dir(struct discover_context *ctx, path = local_path(ctx, dev, dirname); rc = stat(path, &statbuf); + talloc_free(path); if (!rc) return -1;