Skip to content

Commit 627ad47

Browse files
committed
tests: fix minor memory leak in test_isis_lspdb
AddressSanitizer detected the isis structure allocated in main() was never freed. This is a minor test code issue with no impact on isisd itself. Signed-off-by: Vincent Jardin <vjardin@free.fr>
1 parent ef4f2a1 commit 627ad47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/isisd/test_isis_lspdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,6 @@ int main(int argc, char **argv)
8484
struct isis *isis = NULL;
8585
isis = calloc(1, sizeof(*isis));
8686
test_lsp_build_list_nonzero_ht();
87+
free(isis);
8788
return 0;
8889
}

0 commit comments

Comments
 (0)