diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-19 19:52:48 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-19 19:54:14 +0200 |
commit | a48c2cf4e5a9136bf23f4d73a5fe141ebf180e1a (patch) | |
tree | 0123372f6992d504ed2311abfee111a31d1a8613 /fancontrol-ng.c | |
parent | f79a8d38fb97443e6c64196b084253c96fd0391c (diff) | |
download | desktop-tools-a48c2cf4e5a9136bf23f4d73a5fe141ebf180e1a.tar.gz desktop-tools-a48c2cf4e5a9136bf23f4d73a5fe141ebf180e1a.tar.xz desktop-tools-a48c2cf4e5a9136bf23f4d73a5fe141ebf180e1a.zip |
Bump liberty
The bugfixes in the config parser are worth it.
I might have slightly overused cstr_set().
Diffstat (limited to 'fancontrol-ng.c')
-rw-r--r-- | fancontrol-ng.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fancontrol-ng.c b/fancontrol-ng.c index ed37689..ec06dfb 100644 --- a/fancontrol-ng.c +++ b/fancontrol-ng.c @@ -225,12 +225,12 @@ paths_new (const char *device_path, const char *path, struct config_item *pwm) static void paths_destroy (struct paths *self) { - free (self->temp); + cstr_set (&self->temp, NULL); - free (self->pwm); - free (self->pwm_enable); - free (self->pwm_min); - free (self->pwm_max); + cstr_set (&self->pwm, NULL); + cstr_set (&self->pwm_enable, NULL); + cstr_set (&self->pwm_min, NULL); + cstr_set (&self->pwm_max, NULL); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |