X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fother.c;h=fe5f34cc745b9fcc58e17d05161f8e2beb8912ab;hb=d54721b3a44a87be75b83860a955ddc7a0ec6b3d;hp=60406e5d82688cbad68bac4edca0a33e0c7d1cf8;hpb=171ff1d7045de1059556f674470aa87a853563f0;p=debian%2Fdhcpd-pools.git diff --git a/src/other.c b/src/other.c index 60406e5..fe5f34c 100644 --- a/src/other.c +++ b/src/other.c @@ -51,7 +51,7 @@ void *safe_malloc(const size_t size) } /* Simple strdup wrapper */ -inline char *safe_strdup(const char *str) +char *safe_strdup(const char *str) { char *ret = strdup(str); @@ -94,6 +94,8 @@ void clean_up(void) free(config.dhcpdlease_file); free(config.output_file); free(ranges); + free(leases); + free(touches); free(shared_net_names); free(shared_networks); } @@ -109,6 +111,7 @@ void print_version(void) "This is free software: you are free to change and redistribute it.\n"); fprintf(stdout, "There is NO WARRANTY, to the extent permitted by law.\n"); + exit(EXIT_SUCCESS); } void usage(int status)