Skip to content

Commit 0bcb75e

Browse files
committed
tests BUGFIX memory leak
1 parent 40e57ac commit 0bcb75e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ln2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ ln2_glob_test_server_thread(void *arg)
7979
msgtype = nc_accept(NC_ACCEPT_TIMEOUT, test_ctx->ctx, &session);
8080
if (msgtype != NC_MSG_HELLO) {
8181
SETUP_FAIL_LOG;
82+
nc_ps_free(ps);
8283
return NULL;
8384
}
8485

0 commit comments

Comments
 (0)