]> gitweb.hhaalo.de Git - discspan.git/commitdiff
change: do not many reallocs by split
authorBastian Dehn <hhaalo@arcor.de>
Mon, 26 Jul 2021 18:37:35 +0000 (20:37 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 26 Jul 2021 18:37:35 +0000 (20:37 +0200)
splitter.c

index e2d7b44dd1ebb1f5c7cc6c0bdd49434a8883222a..98b60d39ff97340cd4480a2c049813751754f94a 100644 (file)
@@ -49,9 +49,6 @@ file_size_t * splitter(file_size_t *input, const char *output,
                }
        }
 
-       disc = (file_size_t *) realloc(disc, disccount * sizeof(file_size_t));
-       rest = (file_size_t *) realloc(rest, restcount * sizeof(file_size_t));
-
        writeOutputFile(output, disc, disccount);
 
        onPrintEvent(output, splitgroesse);