diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-06 19:00:44 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-06 19:00:44 -0400 |
| commit | 70b7ff30e56b13006fe565de827b2744c6adc8cd (patch) | |
| tree | 0985180dceb7c457f10aa5f2a11ea5bf637b60b7 | |
| parent | 649c5c7259a5a8c95041ca8da9fdd9d4427ca5b7 (diff) | |
| download | stasis-70b7ff30e56b13006fe565de827b2744c6adc8cd.tar.gz | |
Free context on errordynamic-tests
| -rw-r--r-- | src/lib/delivery/delivery_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/delivery/delivery_init.c b/src/lib/delivery/delivery_init.c index eb0b527..dcdd3cc 100644 --- a/src/lib/delivery/delivery_init.c +++ b/src/lib/delivery/delivery_init.c @@ -296,18 +296,22 @@ int bootstrap_build_info(struct Delivery *ctx) { if (delivery_init_platform(&local)) { SYSDEBUG("%s", "delivery_init_platform failed"); + delivery_free(&local); return -1; } if (populate_delivery_cfg(&local, INI_READ_RENDER)) { SYSDEBUG("%s", "populate_delivery_cfg failed"); + delivery_free(&local); return -1; } if (populate_delivery_ini(&local, INI_READ_RENDER)) { SYSDEBUG("%s", "populate_delivery_ini failed"); + delivery_free(&local); return -1; } if (populate_info(&local)) { SYSDEBUG("%s", "populate_info failed"); + delivery_free(&local); return -1; } ctx->info.build_name = strdup(local.info.build_name); @@ -317,6 +321,7 @@ int bootstrap_build_info(struct Delivery *ctx) { ctx->info.time_info = malloc(sizeof(*ctx->info.time_info)); if (!ctx->info.time_info) { SYSERROR("Unable to allocate %zu bytes for tm struct: %s", sizeof(*local.info.time_info), strerror(errno)); + delivery_free(&local); return -1; } } |
