Code

do not close the filehandle to the resize file of there was a problem getting it...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 6 Jan 2011 15:00:34 +0000 (15:00 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 6 Jan 2011 15:00:34 +0000 (15:00 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@2166 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_resize.c

index 1ddd0627bbd2442d8316242b6b88384074502afc..8e9ab01fb45e3da41ef955577ff0fd302fa4cbf6 100644 (file)
@@ -104,7 +104,6 @@ int rrd_resize(
         rrd_free(&rrdnew);
         rrd_free(&rrdold);
         rrd_close(rrd_file);
-        rrd_close(rrd_out_file);
         return (-1);
     }
     if (rrd_lock(rrd_out_file) != 0) {