coverity: Fix double-free in config processing error case
coverity: Fix memory leak at live upgrade - free the buffer containing
status JSON file contents
coverity: Fix memory leak in status JSON generation in case of
rare mutex lock failure (failed to generate JSON due to memory
corruption which caused mutex lock to fail?)