diff options
author | Reuben Thomas <rrt@sc3d.org> | 2022-12-06 10:48:33 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2022-12-08 19:55:54 +0000 |
commit | 7cb091141dbad8e8b31c75b959296929cac13050 (patch) | |
tree | 95a176dfcab4cfaab716160da1ca125903118cff | |
parent | 7de88b5f1c9130c57608f87f3b3a6f4cfa05ae67 (diff) | |
download | enchant-7cb091141dbad8e8b31c75b959296929cac13050.tar.gz |
lib.c: fix double-free (thanks, GCC)
-rw-r--r-- | src/lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |