[sr-dev] git:master:3553ee0b: janssonrpcc: free resources in case of errors