X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fresource.c;h=f9019d1408eed5556b100140bd9c86437858e7b4;hp=25fff650db7fabc6bfe805525c38c379a3ce7708;hb=b8e53cb4b96eb17dc7fa0ffc505dfebae37e6cbf;hpb=ca4dc846bddf8feaafacbdb9c6ebb086a9d99723 diff --git a/discover/resource.c b/discover/resource.c index 25fff65..f9019d1 100644 --- a/discover/resource.c +++ b/discover/resource.c @@ -122,6 +122,7 @@ struct resource *create_url_resource(struct discover_boot_option *opt, struct resource *res; res = talloc(opt, struct resource); + talloc_steal(res, url); res->url = url; res->resolved = true;