X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=program%2Fsrc%2Frrd_dump.c;h=e9376ff28aeaa830f7bc5fec23cb0f1bb2af81b0;hb=33f47e4b9e764bd9b3fb3be03cb3db33dd0bb3d9;hp=0fcab179ab76f5fbd59e1af8fdc5cda505cf5c51;hpb=3af98cc6615b90380900a788afa1ade52d6954cb;p=rrdtool-all.git diff --git a/program/src/rrd_dump.c b/program/src/rrd_dump.c index 0fcab179..e9376ff2 100644 --- a/program/src/rrd_dump.c +++ b/program/src/rrd_dump.c @@ -1,10 +1,16 @@ /***************************************************************************** - * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2002 + * RRDtool 1.2.10 Copyright by Tobi Oetiker, 1997-2005 ***************************************************************************** * rrd_dump Display a RRD ***************************************************************************** * $Id$ * $Log$ + * Revision 1.7 2004/05/25 20:53:21 oetiker + * prevent small leak when resources are exhausted -- Mike Slifcak + * + * Revision 1.6 2004/05/25 20:51:49 oetiker + * Update displayed copyright messages to be consistent. -- Mike Slifcak + * * Revision 1.5 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 @@ -69,6 +75,7 @@ rrd_dump_r(char *filename) rrd_value_t value; struct tm tm; if(rrd_open(filename, &in_file,&rrd, RRD_READONLY)==-1){ + rrd_free(&rrd); return(-1); }