2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

[rt30024] This is a commit message

Fix a pair of memory leaks.
This commit is contained in:
Shawn Routhier
2012-07-11 14:50:35 -07:00
parent e563ec2e58
commit 3bedb11744
3 changed files with 10 additions and 0 deletions

View File

@@ -2403,6 +2403,8 @@ prepare_option_buffer(struct universe *universe, struct buffer *bp,
/* And let go of our references. */
cleanup:
if (lbp != NULL)
buffer_dereference(&lbp, MDL);
option_dereference(&option, MDL);
return status;