fix(lander): remove small mem leak
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details

new-lnm-integration
Jef Roosens 2023-12-09 12:48:32 +01:00
parent 4ae1355cec
commit e44b7d0e5f
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 3 additions and 1 deletions

View File

@ -121,8 +121,10 @@ lnm_http_step_err lander_get_entry(lnm_http_conn *conn) {
lsm_str *key;
lsm_str_init_copy_n(&key, (char *)key_s, key_len);
lsm_error lsm_res = lsm_store_open_read(&c_ctx->entry, c_gctx->store, key);
lsm_str_free(key);
switch (lsm_store_open_read(&c_ctx->entry, c_gctx->store, key)) {
switch (lsm_res) {
case lsm_error_ok:
break;
case lsm_error_not_found: