From: Roy Marples Date: Wed, 15 Oct 2014 18:25:59 +0000 (+0000) Subject: Fix a memory error. X-Git-Tag: v6.5.1~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a35f3c30a654e0a111c61d07a540010bb7ae6964;p=thirdparty%2Fdhcpcd.git Fix a memory error. --- diff --git a/ipv6nd.c b/ipv6nd.c index 0fd39334..8dfdcc0c 100644 --- a/ipv6nd.c +++ b/ipv6nd.c @@ -1061,6 +1061,7 @@ extra_opt: free(rao); } free(opt); + free(opt2); continue; } @@ -1085,6 +1086,7 @@ extra_opt: if (rao && rao->type == ND_OPT_PREFIX_INFORMATION && opt2) { n = _ND_OPT_PREFIX_ADDR; opt = opt2; + opt2 = NULL; goto extra_opt; } }