summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2016-12-08 18:13:23 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2016-12-08 18:13:23 (GMT)
commit57b6fd09db652029b906255fcc594f55e96fddf7 (patch) (side-by-side diff)
tree1a21d2c5428d16e165e47867fa027590067927b7
parentda171b2cb7e6a949577298fa9ee1f11b5a23118d (diff)
downloadmailfromd-57b6fd09db652029b906255fcc594f55e96fddf7.tar.gz
mailfromd-57b6fd09db652029b906255fcc594f55e96fddf7.tar.bz2
Bugfixes
* lib/mfgetopt.c (mf_getopt): Initialize cfhint.flags * src/symbols.c (free_symbols): Free buckets after freeing everything else.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--lib/mfgetopt.c1
-rw-r--r--src/symbols.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/mfgetopt.c b/lib/mfgetopt.c
index e8e09d4..ea6ad58 100644
--- a/lib/mfgetopt.c
+++ b/lib/mfgetopt.c
@@ -27,6 +27,7 @@ mf_getopt(struct mu_cli_setup *cli, int *pargc, char ***pargv, char **capa,
struct mu_parseopt pohint;
struct mu_cfg_parse_hints cfhint;
+ cfhint.flags = 0;
if (!(flags & MF_GETOPT_NO_CONFIG)) {
cfhint.flags = MU_CFHINT_SITE_FILE;
cfhint.site_file = DEFAULT_CONFIG_FILE;
diff --git a/src/symbols.c b/src/symbols.c
index 6048c5a..7f08b45 100644
--- a/src/symbols.c
+++ b/src/symbols.c
@@ -672,9 +672,9 @@ free_symbols()
symtab_destroy(&stab_pragma);
symtab_destroy(&stab_literal);
- free_buckets();
module_free(top_module);
top_module = NULL;
+ free_buckets();
}

Return to:

Send suggestions and report system problems to the System administrator.