Skip to content

Commit fd5e528

Browse files
committed
structure REFACTOR redunant var
1 parent b033b1c commit fd5e528

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/plugins_exts/structure.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ structure_compile(struct lysc_ctx *cctx, const struct lysp_ext_instance *extp, s
170170
LY_ERR rc;
171171
struct lysc_module *mod_c;
172172
struct lysc_node *child;
173-
struct lysc_node_container *top_cont = NULL;
174173
struct lysc_ext_instance_structure *struct_cdata;
175174
uint32_t prev_options = *lyplg_ext_compile_get_options(cctx);
176175

@@ -280,11 +279,6 @@ structure_compile(struct lysc_ctx *cctx, const struct lysp_ext_instance *extp, s
280279

281280
emem:
282281
structure_cfree(lyplg_ext_compile_get_ctx(cctx), ext);
283-
if (top_cont) {
284-
lydict_remove(lyplg_ext_compile_get_ctx(cctx), top_cont->name);
285-
free(top_cont);
286-
}
287-
288282
lyplg_ext_compile_log(cctx, ext, LY_LLERR, LY_EMEM, "Memory allocation failed (%s()).", __func__);
289283
return LY_EMEM;
290284
}

0 commit comments

Comments
 (0)