X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_error.c;h=7798c9f0c5775c0cf027288b78dbc07325dd2cca;hp=33d7c2f0c849abbb37d8046cfc197751d5ccf8f4;hb=b02eace34f83a08c55830cb05bc55078153e2ba6;hpb=298b318acaf1147474ab9e97cac37c3608660efd diff --git a/src/rrd_error.c b/src/rrd_error.c index 33d7c2f..7798c9f 100644 --- a/src/rrd_error.c +++ b/src/rrd_error.c @@ -1,10 +1,14 @@ /***************************************************************************** - * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2002 + * RRDtool 1.2rc4 Copyright by Tobi Oetiker, 1997-2005 ***************************************************************************** * rrd_error.c Common Header File ***************************************************************************** * $Id$ * $Log$ + * Revision 1.4 2003/02/22 21:57:03 oetiker + * a patch to avoid a memory leak and a Makefile.am patch to + * distribute all required source files -- Peter Stamfest + * * Revision 1.3 2003/02/13 07:05:27 oetiker * Find attached the patch I promised to send to you. Please note that there * are three new source files (src/rrd_is_thread_safe.h, src/rrd_thread_safe.c @@ -127,6 +131,7 @@ void rrd_free_context(struct rrd_context *rrd_ctx) { if (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); } }