diff options
author | SUZUKI, Shinsuke <suz@kame.net> | 2008-05-01 03:23:32 +0000 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2010-08-06 15:37:37 +0200 |
commit | bb3f33b3fb288b788cc87c8f06fb2511ca051cb9 (patch) | |
tree | 80030bfd5f292c9ced1e7a4fcad46dc59466bda2 | |
parent | 3310715c3c243fe3f38384a21777046e34d8d361 (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); |