projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port forward of fixes from the stable version of rrd_cgi
[rrdtool.git]
/
src
/
rrd_dump.c
diff --git
a/src/rrd_dump.c
b/src/rrd_dump.c
index
0fcab17
..
a8887ee
100644
(file)
--- a/
src/rrd_dump.c
+++ b/
src/rrd_dump.c
@@
-1,10
+1,16
@@
/*****************************************************************************
/*****************************************************************************
- * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 200
2
+ * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 200
4
*****************************************************************************
* rrd_dump Display a RRD
*****************************************************************************
* $Id$
* $Log$
*****************************************************************************
* 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
* 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_value_t value;
struct tm tm;
if(rrd_open(filename, &in_file,&rrd, RRD_READONLY)==-1){
+ rrd_free(&rrd);
return(-1);
}
return(-1);
}