diff options
author | Jim Meyering <[email protected]> | 2012-01-14 21:34:58 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-01-16 10:50:28 +0000 |
commit | 4402dc3f0a5c5d0f26ed2ae97f9cda9cf4e695fa (patch) | |
tree | a0022f8f8929cf5a2dfa3ae09fb39df3c9233fe6 | |
parent | gpg-agent: fix lc-messages handling not to change Xauthority setting (diff) | |
download | gnupg-4402dc3f0a5c5d0f26ed2ae97f9cda9cf4e695fa.tar.gz gnupg-4402dc3f0a5c5d0f26ed2ae97f9cda9cf4e695fa.zip |
yat2m: don't dereference pointer to freed memory
* doc/yat2m.c (top_parse_file): Correct macrolist-freeing loop.
-rw-r--r-- | doc/yat2m.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/yat2m.c b/doc/yat2m.c index aaa7ea618..a22176cd4 100644 --- a/doc/yat2m.c +++ b/doc/yat2m.c @@ -1203,10 +1203,10 @@ top_parse_file (const char *fname, FILE *fp) if not in a section. */ while (macrolist) { - macro_t m = macrolist->next; - free (m->value); - free (m); - macrolist = m; + macro_t next = macrolist->next; + free (macrolist->value); + free (macrolist); + macrolist = next; } parse_file (fname, fp, §ion_name, 0); |