projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for memory leak. Rene Gallati <security .. draxinusom.ch>
[rrdtool.git]
/
src
/
rrd_last.c
diff --git
a/src/rrd_last.c
b/src/rrd_last.c
index
78ba5a3
..
ad8075e
100644
(file)
--- a/
src/rrd_last.c
+++ b/
src/rrd_last.c
@@
-9,23
+9,19
@@
#include "rrd_tool.h"
time_t
#include "rrd_tool.h"
time_t
-rrd_last(int argc, char **argv)
+rrd_last(int argc, c
onst c
har **argv)
{
{
- time_t lastup;
-
if(argc < 2){
rrd_set_error("please specify an rrd");
return(-1);
}
if(argc < 2){
rrd_set_error("please specify an rrd");
return(-1);
}
- lastup = rrd_last_r(argv[1]);
-
- return(lastup);
+ return( rrd_last_r(argv[1]) );
}
time_t
}
time_t
-rrd_last_r(char *filename)
+rrd_last_r(c
onst c
har *filename)
{
FILE *in_file;
time_t lastup;
{
FILE *in_file;
time_t lastup;