aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-07-08 13:58:43 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-07-08 13:58:43 -0400
commit783a11a8537bc4fc6f211649c33d7e22e54d2dc0 (patch)
tree7941ec71db99a0efed6a480d5368a4d68694b76c
parent1fd91d5449004c8d02c58c05b9a303f520ee746e (diff)
downloadstasis-783a11a8537bc4fc6f211649c33d7e22e54d2dc0.tar.gz
Free errmsg after use
-rw-r--r--src/lib/core/conda.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/core/conda.c b/src/lib/core/conda.c
index 268b433..de6130f 100644
--- a/src/lib/core/conda.c
+++ b/src/lib/core/conda.c
@@ -28,6 +28,7 @@ int micromamba(const struct MicromambaInfo *info, char *command, ...) {
const long http_code = download(url, installer_path, &errmsg);
if (HTTP_ERROR(http_code)) {
fprintf(stderr, "download failed: %ld: %s\n", http_code, errmsg);
+ guard_free(errmsg);
return -1;
}
}