summaryrefslogtreecommitdiff
path: root/server/ddns.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2001-01-25 08:29:12 +0000
committerTed Lemon <source@isc.org>2001-01-25 08:29:12 +0000
commitc399351320ada1151cea8ff6c732ba588fda5837 (patch)
treed1e0d6ec464259e6ca577e5c435277c6c5636aae /server/ddns.c
parent5e0b4c6248c106dbbc271197d794ce69e1d0ed94 (diff)
downloadisc-dhcp-c399351320ada1151cea8ff6c732ba588fda5837.tar.gz
Fix a memory leak.
Diffstat (limited to 'server/ddns.c')
-rw-r--r--server/ddns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/ddns.c b/server/ddns.c
index 31fb16d6..c08d9d12 100644
--- a/server/ddns.c
+++ b/server/ddns.c
@@ -43,7 +43,7 @@
#ifndef lint
static char copyright[] =
-"$Id: ddns.c,v 1.11 2001/01/19 10:59:10 mellon Exp $ Copyright (c) 2000-2001 The Internet Software Consortium. All rights reserved.\n";
+"$Id: ddns.c,v 1.12 2001/01/25 08:29:12 mellon Exp $ Copyright (c) 2000-2001 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -996,6 +996,8 @@ int ddns_updates (struct packet *packet,
data_string_forget (&ddns_fwd_name, MDL);
data_string_forget (&ddns_rev_name, MDL);
data_string_forget (&ddns_dhcid, MDL);
+ if (bp)
+ buffer_dereference (&bp, MDL);
return result;
}