From a48c2cf4e5a9136bf23f4d73a5fe141ebf180e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 19 Oct 2020 19:52:48 +0200 Subject: Bump liberty The bugfixes in the config parser are worth it. I might have slightly overused cstr_set(). --- fancontrol-ng.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fancontrol-ng.c') 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); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3