mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 09:57:20 +00:00
[master] Fix a memory leak in the v6 version of the client code
Squashed commit of the following: commit 70bc20ffb6bd21793d2fb4f945ef9f16619df46f Author: Shawn Routhier <sar@isc.org> Date: Tue Oct 20 12:18:01 2015 -0700 [rt40990] Fix a memory leak in the v6 version of the client code
This commit is contained in:
parent
555093daef
commit
18ba0ff38c
4
RELNOTES
4
RELNOTES
@ -103,6 +103,10 @@ by Eric Young (eay@cryptsoft.com).
|
||||
he provided.
|
||||
[ISC-Bugs #38396]
|
||||
|
||||
- Fix a small memory leak in the DHCPv6 version of the client code.
|
||||
This is unlikely to cause significant issues in actual use.
|
||||
[ISC-Bugs #40990]
|
||||
|
||||
Changes since 4.3.3b1
|
||||
- None
|
||||
|
||||
|
@ -418,6 +418,12 @@ valid_reply(struct packet *packet, struct client_state *client)
|
||||
rval = ISC_FALSE;
|
||||
}
|
||||
|
||||
/* clean up pointers to the strings */
|
||||
if (sid.data != NULL)
|
||||
data_string_forget(&sid, MDL);
|
||||
if (cid.data != NULL)
|
||||
data_string_forget(&cid, MDL);
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user