}
/* Simple strdup wrapper */
-inline char *safe_strdup(const char *str)
+char *safe_strdup(const char *str)
{
char *ret = strdup(str);
{
int ret;
- if (errno) {
- warn("clean_up: errno (%d) set but not checked in correct place.\nif this is repeatable send strace output as a bug report", errno);
- }
/* Just in case there something in buffers */
ret = fflush(stdout);
if (errno || ret) {
free(config.dhcpdlease_file);
free(config.output_file);
free(ranges);
+ free(leases);
+ free(touches);
free(shared_net_names);
free(shared_networks);
}
"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)