Along with two "Fix memory leak" commits, upstream cpuminer silently fixed a use-after-free bug, which in my experience manifested itself as libcurl trying to reconnect to a bogus URL (located in freed memory reused by other data). You'll want to either rebase on latest upstream cpuminer or merge these commits:
commit 96c3676d884acf2e1d967f383c9fbf0e055d7792
Author: pooler <pooler@litecoinpool.org>
Date: Thu Apr 21 23:44:55 2016 +0200
Fix memory leak in the long polling thread
commit aa071501587e34122fbaed76bb4c81c131540338
Author: pooler <pooler@litecoinpool.org>
Date: Tue Mar 15 20:13:22 2016 +0100
Fix memory leaks affecting getblocktemplate
where the resulting changes will look something like:
Along with two "Fix memory leak" commits, upstream cpuminer silently fixed a use-after-free bug, which in my experience manifested itself as libcurl trying to reconnect to a bogus URL (located in freed memory reused by other data). You'll want to either rebase on latest upstream cpuminer or merge these commits:
where the resulting changes will look something like:
The use-after-free fix is on the line with
strdup()
.