]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fix nasty double-free error in rrd_free (duh!)
authorPeter Stamfest <peter@stamfest.at>
Sun, 16 Mar 2014 08:27:24 +0000 (09:27 +0100)
committerPeter Stamfest <peter@stamfest.at>
Sun, 16 Mar 2014 08:29:20 +0000 (09:29 +0100)
src/rrd_open.c

index f9aeea2d5af245cbf8d9a9c9fbd562d7ac090698..2a36589388df4780703e0ce69245a285bfff97de 100644 (file)
@@ -764,6 +764,7 @@ static void free_rrd_ptr_if_not_mmapped(void *m, const rrd_t *rrd)
     
     if (rrd == NULL || rrd->__mmap_start == NULL) {
        free(m);
+       return;
     }
     
     /* is this ALWAYS correct on all supported platforms ??? */