X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=cd4e3acba1bd0814f378771232a337309d391a2d;hp=9fd9fab5cf5f60db1b8c372b7401cc07b511b176;hb=2163af58b5e631a2a8d2acd79b541ed884ab7b57;hpb=07a5f9f1c50a9185851cd486d732976573d15c4f diff --git a/discover/device-handler.c b/discover/device-handler.c index 9fd9fab..cd4e3ac 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -861,7 +861,7 @@ out: device_handler_boot_status(handler, status); talloc_free(status); - talloc_free(ctx); + talloc_unlink(handler, ctx); return 0; } @@ -900,7 +900,7 @@ int device_handler_dhcp(struct device_handler *handler, device_handler_boot_status(handler, status); talloc_free(status); - talloc_free(ctx); + talloc_unlink(handler, ctx); return 0; } @@ -930,7 +930,7 @@ int device_handler_conf(struct device_handler *handler, device_handler_boot_status(handler, status); talloc_free(status); - talloc_free(ctx); + talloc_unlink(handler, ctx); return 0; } @@ -1162,7 +1162,7 @@ void device_handler_process_url(struct device_handler *handler, device_handler_discover_context_commit(handler, ctx); - talloc_free(ctx); + talloc_unlink(handler, ctx); status->type = BOOT_STATUS_INFO; status->message = talloc_asprintf(status, _("Config file %s parsed"),