summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-02-05 18:04:02 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-02-05 18:04:02 +0100
commitf50062b40bbe0cba72eec0f84dd4fbdbece3baed (patch)
treed27ae71b4c5966f8141726e680e1983e5921ee3f /src
parentac1616c81a1b650551baf2e0c115fae44263caa7 (diff)
Apply 02_changeset_r50_http_support_2.patch from Debian
Diffstat (limited to 'src')
-rw-r--r--src/imlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imlib.c b/src/imlib.c
index a217da3..3d829ce 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -556,8 +556,8 @@ feh_http_load_image(char *url)
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
{
weprintf("url: wget failed to load URL %s\n", url);
- free(tmpname);
free(newurl);
+ free(tmpname);
D_RETURN(4, NULL);
}
if (opt.wget_timestamp)
@@ -568,10 +568,10 @@ feh_http_load_image(char *url)
tmpname);
system(cmd);
}
+ free(newurl);
}
}
- free(newurl);
D_RETURN(4, tmpname);
}