mirror of https://github.com/F-Stack/f-stack.git
Avoid leaks after errors in freebsd config handler
Freeing allocated memory in an error flow. Currently this would most likely not occure but a safeguard for future changes.
This commit is contained in:
parent
2445361818
commit
24a9ac3341
|
@ -191,6 +191,7 @@ freebsd_conf_handler(struct ff_config *cfg, const char *section,
|
|||
}
|
||||
} else {
|
||||
fprintf(stderr, "freebsd conf section[%s] error\n", section);
|
||||
free(newconf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue