summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imlib.c')
-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);
}