From 7cb091141dbad8e8b31c75b959296929cac13050 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Tue, 6 Dec 2022 10:48:33 +0100 Subject: lib.c: fix double-free (thanks, GCC) --- src/lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.c b/src/lib.c index d9d3c54..85fcce5 100644 --- a/src/lib.c +++ b/src/lib.c @@ -140,6 +140,7 @@ enchant_get_conf_dirs (void) goto error_exit; conf_dirs = g_slist_append (conf_dirs, pkgconfdir); free (sysconfdir); + sysconfdir = NULL; if ((user_config_dir = enchant_get_user_config_dir ()) == NULL) goto error_exit; -- cgit v1.2.1