api.c: Not releasing data buffer
api.c: Release apisock
cgminer.c: Release allocated memory during config load
util.c: Decreasing reference count on allocated JSON obects to prevent memory leak