Fix small memory problem
This commit is contained in:
parent
56e5fc7a6d
commit
03d554f34f
@ -17,6 +17,10 @@ Options GLOBAL_OPTS;
|
|||||||
void cleanup_options(Options *opts) {
|
void cleanup_options(Options *opts) {
|
||||||
FREE_CHECKED(opts->config_path);
|
FREE_CHECKED(opts->config_path);
|
||||||
FREE_CHECKED(opts->gpio_path);
|
FREE_CHECKED(opts->gpio_path);
|
||||||
|
FREE_CHECKED(opts->temp_key);
|
||||||
|
FREE_CHECKED(opts->humid_key);
|
||||||
|
FREE_CHECKED(opts->fail_key);
|
||||||
|
FREE_CHECKED(opts->lcd_version);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *malloc_checked(size_t n) {
|
void *malloc_checked(size_t n) {
|
||||||
|
Loading…
Reference in New Issue
Block a user