aboutsummaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2008-05-01 03:23:32 +0000
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:37 +0200
commitbb3f33b3fb288b788cc87c8f06fb2511ca051cb9 (patch)
tree80030bfd5f292c9ced1e7a4fcad46dc59466bda2 /common.c
parent3310715c3c243fe3f38384a21777046e34d8d361 (diff)
fixed a memory leak (Bug-ID: 1847587)
Diffstat (limited to 'common.c')
-rw-r--r--common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.c b/common.c
index 8c8d43f..3538c00 100644
--- a/common.c
+++ b/common.c
@@ -2545,6 +2545,7 @@ dhcp6_set_options(type, optbp, optep, optinfo)
default:
dprintf(LOG_ERR, FNAME,
"unexpected authentication protocol");
+ free(auth);
goto fail;
}
}
@@ -2553,6 +2554,7 @@ dhcp6_set_options(type, optbp, optep, optinfo)
&auth->dh6_auth_proto, &p, optep, &len) != 0) {
goto fail;
}
+ free(auth);
}
return (len);