diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2025-02-12 17:04:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-12 17:04:01 -0500 |
commit | 09de456a667a771348c3f1c9b0bd56afe4b8d3bd (patch) | |
tree | aedfcbb0b2876e3d7aad28a7cc09354a611c156e /src/lib/delivery/delivery_install.c | |
parent | 2bd06b22e455fa154e7db27677421c8b53cbf43c (diff) | |
parent | 4e22506e086e02ffe3056c6fd39ccb201fd358c8 (diff) | |
download | stasis-09de456a667a771348c3f1c9b0bd56afe4b8d3bd.tar.gz |
Merge pull request #89 from jhunkeler/huge-changeset
Huge changeset
Diffstat (limited to 'src/lib/delivery/delivery_install.c')
-rw-r--r-- | src/lib/delivery/delivery_install.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/delivery/delivery_install.c b/src/lib/delivery/delivery_install.c index d3aab01..15ad7e0 100644 --- a/src/lib/delivery/delivery_install.c +++ b/src/lib/delivery/delivery_install.c @@ -128,7 +128,7 @@ int delivery_purge_packages(struct Delivery *ctx, const char *env_name, int use_ char package_manager[100] = {0}; typedef int (fnptr)(const char *); - const char *current_env = conda_get_active_environment(); + char *current_env = conda_get_active_environment(); if (current_env) { conda_activate(ctx->storage.conda_install_prefix, env_name); } @@ -171,10 +171,12 @@ int delivery_purge_packages(struct Delivery *ctx, const char *env_name, int use_ status = 1; break; } + guard_free(command); } if (current_env) { conda_activate(ctx->storage.conda_install_prefix, current_env); + guard_free(current_env); } return status; |