Skip to content

Commit cab77f5

Browse files
committed
src/schema_compile_node.c: coverity fix - resource leak
1 parent 5a9eb79 commit cab77f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/schema_compile_node.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4223,6 +4223,7 @@ lys_compile_grouping(struct lysc_ctx *ctx, struct lysp_node *pnode, struct lysp_
42234223
len = lys_compile_grouping_pathlog(ctx, grp->parent, &path);
42244224
if (len < 0) {
42254225
LOGMEM(ctx->ctx);
4226+
free(path);
42264227
return LY_EMEM;
42274228
}
42284229
strncpy(ctx->path, path, LYSC_CTX_BUFSIZE - 1);

0 commit comments

Comments
 (0)