aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2008-05-01 03:23:32 +0000
committerSUZUKI, Shinsuke <suz@kame.net>2008-05-01 03:23:32 +0000
commit61b0811b3e6e0e9e78fcdc64f9935d737a593287 (patch)
tree80030bfd5f292c9ced1e7a4fcad46dc59466bda2
parent41210fdb754ab90d3ca012448d8543954d625beb (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);