summaryrefslogtreecommitdiff
path: root/source4/wrepl_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-08 18:25:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:53 -0500
commita55287a2859da212a1b7424ad1914cbfade07b42 (patch)
tree3bee679bf2a5dc5590ae894b1eec220dd853ecff /source4/wrepl_server
parent887eae8516490f09a43b60d8b7a26cd4cba283a5 (diff)
downloadsamba-a55287a2859da212a1b7424ad1914cbfade07b42.tar.gz
samba-a55287a2859da212a1b7424ad1914cbfade07b42.tar.bz2
samba-a55287a2859da212a1b7424ad1914cbfade07b42.zip
r12775: free elements early...
metze (This used to be commit 49f78e21fe4a293fdb4d9d49d16dbed3ef8137b1)
Diffstat (limited to 'source4/wrepl_server')
-rw-r--r--source4/wrepl_server/wrepl_scavenging.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/wrepl_server/wrepl_scavenging.c b/source4/wrepl_server/wrepl_scavenging.c
index a5275761a0..01309d0e0e 100644
--- a/source4/wrepl_server/wrepl_scavenging.c
+++ b/source4/wrepl_server/wrepl_scavenging.c
@@ -83,6 +83,7 @@ static NTSTATUS wreplsrv_scavenging_owned_records(struct wreplsrv_service *servi
for (i=0; i < res->count; i++) {
status = winsdb_record(service->wins_db, res->msgs[i], tmp_mem, &rec);
NT_STATUS_NOT_OK_RETURN(status);
+ talloc_free(res->msgs[i]);
if (rec->is_static) {
DEBUG(0,("%s: corrupted record: %s\n",
@@ -196,6 +197,7 @@ static NTSTATUS wreplsrv_scavenging_replica_non_active_records(struct wreplsrv_s
for (i=0; i < res->count; i++) {
status = winsdb_record(service->wins_db, res->msgs[i], tmp_mem, &rec);
NT_STATUS_NOT_OK_RETURN(status);
+ talloc_free(res->msgs[i]);
if (rec->is_static) {
DEBUG(0,("%s: corrupted record: %s\n",
@@ -299,6 +301,7 @@ static NTSTATUS wreplsrv_scavenging_replica_active_records(struct wreplsrv_servi
for (i=0; i < res->count; i++) {
status = winsdb_record(service->wins_db, res->msgs[i], tmp_mem, &rec);
NT_STATUS_NOT_OK_RETURN(status);
+ talloc_free(res->msgs[i]);
if (rec->is_static) {
DEBUG(0,("%s: corrupted record: %s\n",