aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqorg11 <qorg@vxempire.xyz>2021-07-29 03:02:02 +0200
committerqorg11 <qorg@vxempire.xyz>2021-07-29 03:02:02 +0200
commit91a12163a4a1c411457dba12de1e101de90b6d31 (patch)
tree60eb5cf41729c12ce7575847cd3d9775ffca0920
parent997648dda98074911e99ec0b02621ad63f340840 (diff)
downloaddemiurge-91a12163a4a1c411457dba12de1e101de90b6d31.tar.gz
demiurge-91a12163a4a1c411457dba12de1e101de90b6d31.zip
Fix double free while (un)following
-rw-r--r--src/follow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/follow.c b/src/follow.c
index e21808e..b383cdf 100644
--- a/src/follow.c
+++ b/src/follow.c
@@ -128,6 +128,7 @@ follow_account(char *id, char action)
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
curl_easy_perform(curl);
+
curl_easy_cleanup(curl);
free(api_url);
free(authorization_header);
@@ -141,7 +142,7 @@ follow_account(char *id, char action)
printf("Following: %s\n", json_object_get_string(following));
json_object_put(parsed_json);
- curl_slist_free_all(header_list);
+
free(chunk.response);
return 0;