aboutsummaryrefslogtreecommitdiff
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
parent3310715c3c243fe3f38384a21777046e34d8d361 (diff)
fixed a memory leak (Bug-ID: 1847587)
-rw-r--r--CHANGES3
-rw-r--r--common.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index ad9df87..d733347 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2008-05-01 SUZUKI, Shinsuke <suz@kame.net>
+ * common.c: fixed a memory leak (Bug-ID: 1847587)
+
2007-12-06 SUZUKI, Shinsuke <suz@kame.net>
* common.c: fixed a possible memory leak. (Bug-ID 1844676)
* common.c: fixed a possible double free. (Bug-ID 1844683)
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);