aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-02-13 16:19:57 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-02-13 16:24:11 -0500
commit8477ef0afa4eb5f739b7a10795fdf08f11d2f414 (patch)
tree6e78dc5d6abeeed95e9c8ecdf194b55521e3eef1 /src
parentd6b60205974136969212a2e415dadd773b471bc0 (diff)
downloadstasis-8477ef0afa4eb5f739b7a10795fdf08f11d2f414.tar.gz
Fix memory leak when reading a comment
Diffstat (limited to 'src')
-rw-r--r--src/lib/core/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c
index 2cfebdf..00d747f 100644
--- a/src/lib/core/utils.c
+++ b/src/lib/core/utils.c
@@ -1017,6 +1017,7 @@ static int read_vcs_records(const size_t line, char **data) {
// Ignore file comment(s)
if (startswith(data_local, "#") || startswith(data_local, ";")) {
// continue
+ guard_free(data_local);
return 1;
}