summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-19 17:00:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:11 -0500
commit4d0650e0239d6f448c3660a6049a06658ac94566 (patch)
tree5d1f43bcaaf23ca5bd7602630e9b4ca9a7c688c9 /source4
parentc13a4084f217cdda8d24851acdbd86dce9a76fea (diff)
downloadsamba-4d0650e0239d6f448c3660a6049a06658ac94566.tar.gz
samba-4d0650e0239d6f448c3660a6049a06658ac94566.tar.bz2
samba-4d0650e0239d6f448c3660a6049a06658ac94566.zip
r22382: fix memory leak
metze (This used to be commit 1998961e34f4c0ce6cdcfa193770b371d5e7727c)
Diffstat (limited to 'source4')
-rw-r--r--source4/wrepl_server/wrepl_server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/wrepl_server/wrepl_server.c b/source4/wrepl_server/wrepl_server.c
index bc24ae1abd..f7ad7cf284 100644
--- a/source4/wrepl_server/wrepl_server.c
+++ b/source4/wrepl_server/wrepl_server.c
@@ -127,7 +127,7 @@ NTSTATUS wreplsrv_load_partners(struct wreplsrv_service *service)
struct wreplsrv_partner *partner;
struct ldb_result *res = NULL;
int ret;
- TALLOC_CTX *tmp_ctx = talloc_new(service);
+ TALLOC_CTX *tmp_ctx;
int i;
uint64_t new_seqnumber;
@@ -138,6 +138,9 @@ NTSTATUS wreplsrv_load_partners(struct wreplsrv_service *service)
return NT_STATUS_OK;
}
+ tmp_ctx = talloc_new(service);
+ NT_STATUS_HAVE_NO_MEMORY(tmp_ctx);
+
service->config.seqnumber = new_seqnumber;
/* find the record in the WINS database */