fix(lander): remove small mem leak
parent
4ae1355cec
commit
e44b7d0e5f
|
@ -121,8 +121,10 @@ lnm_http_step_err lander_get_entry(lnm_http_conn *conn) {
|
||||||
|
|
||||||
lsm_str *key;
|
lsm_str *key;
|
||||||
lsm_str_init_copy_n(&key, (char *)key_s, key_len);
|
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:
|
case lsm_error_ok:
|
||||||
break;
|
break;
|
||||||
case lsm_error_not_found:
|
case lsm_error_not_found:
|
||||||
|
|
Loading…
Reference in New Issue