Skip to content

Commit 2954396

Browse files
author
roman
committed
test io BUGFIX memory leak
1 parent 7f121b3 commit 2954396

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_io.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ setup_write(void **state)
5353
/* ietf-netconf */
5454
fd = open(TESTS_DIR "/data/modules/ietf-netconf.yin", O_RDONLY);
5555
if (fd == -1) {
56+
free(w->session);
5657
free(w);
5758
return -1;
5859
}

0 commit comments

Comments
 (0)