Commit 60b17ab5 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Reza Naghibi

Fix a small memory leak

Fix a small memory leak when failing to spawn a new thread.
parent b3344f26
......@@ -462,6 +462,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, strerror(errno));
Lck_Lock(&pool_mtx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment