summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/title.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/title.c b/bin/title.c
index 0208f862..d85fa9ac 100644
--- a/bin/title.c
+++ b/bin/title.c
@@ -127,8 +127,12 @@ static CURLcode fetchTitle(const char *url) {
 
 	char *dest;
 	curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &dest);
+	dest = strdup(dest);
+	if (!dest) err(EX_OSERR, "strdup");
+
 	code = curl_easy_setopt(curl, CURLOPT_URL, dest);
 	if (code) return code;
+	free(dest);
 
 	body.len = 0;
 	title = false;
d=f4a050a8e39d3028d31ff57575bb4af32705f2fb&follow=1'>Add HOME button, ssh link, AGPL notice to exploreJune McEnroe 2019-01-06Add meta viewport to exploreJune McEnroe 2019-01-06Set background and max-width in exploreJune McEnroe 2019-01-06Swallow writes after the connection is closedJune McEnroe 2019-01-06Handle KCGI_HUPJune McEnroe 2019-01-06Install html filesJune McEnroe