mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
common: Avoid double-free
* common/name-value.c (do_nvc_parse): reset to null after ownership change -- Signed-off-by: Jakub Jelen <jjelen@redhat.com> GnuPG-bug-id: 5393
This commit is contained in:
parent
33a2362e56
commit
4704d1ce4e
@ -724,6 +724,7 @@ do_nvc_parse (nvc_t *result, int *errlinep, estream_t stream,
|
|||||||
if (raw_value)
|
if (raw_value)
|
||||||
{
|
{
|
||||||
err = _nvc_add (*result, name, NULL, raw_value, 1);
|
err = _nvc_add (*result, name, NULL, raw_value, 1);
|
||||||
|
name = NULL;
|
||||||
if (err)
|
if (err)
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user