On Fri, Jan 06, 2023 at 12:51:29PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> ... > GPIOD_API void gpiod_line_config_free(struct gpiod_line_config *config) > { > + if (!config) > + return; > + > free_refs(config); > free(config); > } At least this is redundant. free() is NULL-aware itself. -- With Best Regards, Andy Shevchenko