Skip to content

Commit f545e32

Browse files
committed
src/tree_schema.c: coverity fix - resource leak
1 parent 67bee87 commit f545e32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tree_schema.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ lysc_path_until(const struct lysc_node *node, const struct lysc_node *parent, LY
788788
if (buffer) {
789789
strcpy(buffer, "/");
790790
} else {
791+
free(path);
791792
path = strdup("/");
792793
}
793794
}

0 commit comments

Comments
 (0)