From: Jeremy Kerr Date: Thu, 18 Jul 2013 05:21:37 +0000 (+0800) Subject: discover: Don't free URL in load_url X-Git-Tag: v1.0.0~546 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=e93c1332f38deb3daf23852ebcadf613c0c4f288 discover: Don't free URL in load_url Previously, load_url took a char * argument, from which it parsed a newly allocated URL, and freed the URL before returning. Commit 5be946c changed load_url (then load_file) to accept a parsed URL instead of a char *, but didn't remove the free. Any URLs passed to load_url are currently being unintionally free()ed. This change removes the invalid free. Signed-off-by: Jeremy Kerr --- diff --git a/discover/paths.c b/discover/paths.c index d95e359..26fb7cb 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -302,6 +302,5 @@ char *load_url(void *ctx, struct pb_url *url, unsigned int *tempfile) if (tempfile) *tempfile = tmp; - talloc_free(url); return local; }