diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-07-18 13:21:37 +0800 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-07-23 09:44:45 -0700 |
commit | e93c1332f38deb3daf23852ebcadf613c0c4f288 (patch) | |
tree | ee500f2ce5808d2eabc0792a20e84bd11329b54e /discover/paths.c | |
parent | f41f900809ab0338f5c159b08f07de53dcb46ca3 (diff) | |
download | talos-petitboot-e93c1332f38deb3daf23852ebcadf613c0c4f288.tar.gz talos-petitboot-e93c1332f38deb3daf23852ebcadf613c0c4f288.zip |
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 <jk@ozlabs.org>
Diffstat (limited to 'discover/paths.c')
-rw-r--r-- | discover/paths.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |