summaryrefslogtreecommitdiff
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
parentac1616c81a1b650551baf2e0c115fae44263caa7 (diff)
downloadfeh-f50062b40bbe0cba72eec0f84dd4fbdbece3baed.zip
Apply 02_changeset_r50_http_support_2.patch from Debian
-rw-r--r--ChangeLog3
-rw-r--r--src/imlib.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 763afbb..cbb72c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+Sat Oct 1 08:05:06 EDT 2005 Richard Lowe <richlowe@richlowe.net>
+ * (imlib.c): Fix double free in feh_http_load_image
+ when using builtin HTTP support.
Sat Oct 1 07:25:00 EDT 2005 Richard Lowe <richlowe@richlowe.net>
* (imlib.c): Fix http grabbing via wget, wget --cache 0 is no longer valid
and treats the 0 as another URL. Debian bug #330912.
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);
}