- rrd_ctx->len = 0;
- rrd_ctx->rrd_error = malloc(MAXLEN+10);
- rrd_ctx->lib_errstr = malloc(ERRBUFLEN+10);
- if (rrd_ctx->rrd_error && rrd_ctx->lib_errstr) {
- *rrd_ctx->rrd_error = 0;
- *rrd_ctx->lib_errstr = 0;
- rrd_ctx->len = MAXLEN;
- rrd_ctx->errlen = ERRBUFLEN;
- return rrd_ctx;
- }
- if (rrd_ctx->rrd_error) free(rrd_ctx->rrd_error);
- if (rrd_ctx->lib_errstr) free(rrd_ctx->lib_errstr);
- free(rrd_ctx);
+ rrd_ctx->rrd_error = malloc(MAXLEN + 10);
+ rrd_ctx->lib_errstr = malloc(ERRBUFLEN + 10);
+ if (rrd_ctx->rrd_error && rrd_ctx->lib_errstr) {
+ *rrd_ctx->rrd_error = 0;
+ *rrd_ctx->lib_errstr = 0;
+ rrd_ctx->len = MAXLEN;
+ rrd_ctx->errlen = ERRBUFLEN;
+ return rrd_ctx;
+ }
+ if (rrd_ctx->rrd_error)
+ free(rrd_ctx->rrd_error);
+ if (rrd_ctx->lib_errstr)
+ free(rrd_ctx->lib_errstr);
+ free(rrd_ctx);