aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/transfer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index deb0ec786..e6d98cfa4 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1502,10 +1502,8 @@ CURLcode Curl_follow(struct Curl_easy *data,
}
data->change.referer = strdup(data->change.url);
- if(!data->change.referer) {
- free(newurl);
+ if(!data->change.referer)
return CURLE_OUT_OF_MEMORY;
- }
data->change.referer_alloc = TRUE; /* yes, free this later */
}
}