[sr-dev] git:master:796bcc03: jsonrpcc: free allocated pkg buffer on error