Commit 45a3e19f authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix memory leak in doready; not freeing the db result.

parent c55a05d2
......@@ -1668,6 +1668,7 @@ doreadycount(int sock, struct in_addr ipaddr, char *rdata, int tcp)
ready++;
}
}
mysql_free_result(res);
sprintf(buf, "READY=%d TOTAL=%d\n", ready, total);
client_writeback(sock, buf, strlen(buf), tcp);
......
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