other: free backup ranges
[debian/dhcpd-pools.git] / src / other.c
index a16240b..2cf3599 100644 (file)
@@ -28,9 +28,9 @@
 extern void exit();
 extern char *malloc();
 #endif                         /* STDC_HEADERS */
-#include <errno.h>
 #include <err.h>
-#include <stdarg.h>
+#include <errno.h>
+#include <stddef.h>
 #ifdef  HAVE_STRING_H
 #include <string.h>
 #else
@@ -100,6 +100,7 @@ void clean_up(void)
        free(config.output_file);
        free(ranges);
        free(leases);
+       free(backups);
        free(touches);
        free(shared_networks);
 }
@@ -131,7 +132,7 @@ This is ISC dhcpd pools usage analyzer.\n\
        fprintf(out, "\
   -c, --config=FILE      path to the dhcpd.conf file\n\
   -l, --leases=FILE      path to the dhcpd.leases file\n\
-  -f, --format=[thcxX]   output format\n");
+  -f, --format=[thHcxX]  output format\n");
        fprintf(out, "\
                            t for text\n\
                            h for html table\n\