From b3c62e6acc5761171822f522dc9d784558f9afbe Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 11 May 2024 13:11:19 +0200 Subject: fixed tests for no hashtable --- ecp/test/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ecp/test/init.c') diff --git a/ecp/test/init.c b/ecp/test/init.c index aca2630..79c1098 100644 --- a/ecp/test/init.c +++ b/ecp/test/init.c @@ -19,7 +19,8 @@ static ECPConnection *conn_new(ECPSocket *sock, ECPConnection *parent, unsigned } static void conn_free(ECPConnection *conn) { - if (ecp_conn_is_gc(conn)) free(conn); + /* outbound connections are statically allocated */ + if (ecp_conn_is_inb(conn)) free(conn); } int ecp_init(ECPContext *ctx) { -- cgit v1.2.3