aboutsummaryrefslogtreecommitdiff
path: root/src/github.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-06-26 13:17:50 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-06-26 13:27:42 -0400
commit34733c7ab93ba3f610038e8ce50edad8b889135e (patch)
tree183124fd45f8fb1fbaabe4cdb22254e3a2a97617 /src/github.c
parentc2da0971bff60d89d5a2fb19885184cd2c58c5b3 (diff)
downloadstasis-34733c7ab93ba3f610038e8ce50edad8b889135e.tar.gz
Replace free() with guard variant
Diffstat (limited to 'src/github.c')
-rw-r--r--src/github.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/github.c b/src/github.c
index 4491714..3b36439 100644
--- a/src/github.c
+++ b/src/github.c
@@ -119,15 +119,15 @@ int get_github_release_notes(const char *api_token, const char *repo, const char
fprintf(stderr, "GitHub API Error: '%s'\n", data_offset);
fprintf(stderr, "URL: %s\n", endpoint_url);
fprintf(stderr, "POST: %s\n", endpoint_post_fields);
- free(content.data);
+ guard_free(content.data);
return -1;
}
} else {
fprintf(stderr, "Unknown error\n");
- free(content.data);
+ guard_free(content.data);
return -1;
}
- free(content.data);
+ guard_free(content.data);
return 0;
} \ No newline at end of file