Fix small memory problem

This commit is contained in:
Alexander Rosenberg 2024-02-28 08:30:02 -08:00
parent 56e5fc7a6d
commit 03d554f34f
Signed by: school-rpi4
GPG Key ID: 5CCFC80B0B47B04B

View File

@ -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) {