bugfix:修复packet io内存泄漏

This commit is contained in:
wangmenglan
2023-05-22 15:19:29 +08:00
parent b931a3dc58
commit fc2625c691
6 changed files with 88 additions and 35 deletions

View File

@@ -169,7 +169,7 @@ struct acceptor_kni_v4 *acceptor_kni_v4_create(struct tfe_proxy *proxy, const ch
g_packet_io_logger = packet_io_logger;
struct acceptor_kni_v4 *acceptor_ctx = acceptor_ctx_create(profile, packet_io_logger);
if (acceptor_ctx == NULL)
goto error_out;
return NULL;
acceptor_ctx->ref_proxy = proxy;
for (int i = 0; i < acceptor_ctx->nr_worker_threads; i++) {