summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ecp/test/init.c5
-rw-r--r--ecp/test/init_vconn.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/ecp/test/init.c b/ecp/test/init.c
index b0d91d1..069aad3 100644
--- a/ecp/test/init.c
+++ b/ecp/test/init.c
@@ -11,7 +11,10 @@ static ECPConnection *conn_new(ECPSocket *sock, unsigned char type) {
ECPConnection *conn;
conn = malloc(sizeof(ECPConnection));
- if (conn) ecp_conn_init(conn, sock, type);
+ if (conn) {
+ ecp_conn_init(conn, sock, type);
+ ecp_conn_set_flags(conn, ECP_CONN_FLAG_GC);
+ }
return conn;
}
diff --git a/ecp/test/init_vconn.c b/ecp/test/init_vconn.c
index 149b57a..64e9631 100644
--- a/ecp/test/init_vconn.c
+++ b/ecp/test/init_vconn.c
@@ -37,6 +37,7 @@ static ECPConnection *conn_new(ECPSocket *sock, unsigned char type) {
}
}
+ if (conn) ecp_conn_set_flags(conn, ECP_CONN_FLAG_GC);
return conn;
}