diff options
author | SUZUKI, Shinsuke <suz@kame.net> | 2008-05-01 03:23:32 +0000 |
---|---|---|
committer | SUZUKI, Shinsuke <suz@kame.net> | 2008-05-01 03:23:32 +0000 |
commit | 61b0811b3e6e0e9e78fcdc64f9935d737a593287 (patch) | |
tree | 80030bfd5f292c9ced1e7a4fcad46dc59466bda2 | |
parent | 41210fdb754ab90d3ca012448d8543954d625beb (diff) |
fixed a memory leak (Bug-ID: 1847587)
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | common.c | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -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) @@ -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); |