diff --git a/bin/varnishd/cache/cache_wrk.c b/bin/varnishd/cache/cache_wrk.c index ac976049f9..9d3afbd8ef 100644 --- a/bin/varnishd/cache/cache_wrk.c +++ b/bin/varnishd/cache/cache_wrk.c @@ -461,6 +461,7 @@ pool_breed(struct pool *qp) pi->qp = qp; if (pthread_create(&tp, &tp_attr, pool_thread, pi)) { + FREE_OBJ(pi); VSL(SLT_Debug, 0, "Create worker thread failed %d %s", errno, vstrerror(errno)); Lck_Lock(&pool_mtx);