diff options
Diffstat (limited to 'common/name-value.c')
-rw-r--r-- | common/name-value.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/name-value.c b/common/name-value.c index f663ecfe1..0bd205b7d 100644 --- a/common/name-value.c +++ b/common/name-value.c @@ -777,9 +777,13 @@ do_nvc_parse (nvc_t *result, int *errlinep, estream_t stream, /* Add the final entry. */ if (raw_value) - err = _nvc_add (*result, name, NULL, raw_value, 1); + { + err = _nvc_add (*result, name, NULL, raw_value, 1); + name = NULL; + } leave: + xfree (name); gpgrt_free (buf); if (err) { |