From 26bb4a163dbadc0ef139712d8a6bb7a10a474dd6 Mon Sep 17 00:00:00 2001 From: Hemanth Thummala Date: Tue, 2 Feb 2016 10:33:20 -0800 Subject: [PATCH] loadparm: Fix memory leak issue. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11708 Signed-off-by: Hemanth Thummala --- source3/param/loadparm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 31d9e2d..fb92230 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1388,7 +1388,7 @@ static int add_a_service(const struct loadparm_service *pservice, const char *na return (-1); } ServicePtrs = tsp; - ServicePtrs[iNumServices] = talloc_zero(NULL, struct loadparm_service); + ServicePtrs[iNumServices] = talloc_zero(ServicePtrs, struct loadparm_service); if (!ServicePtrs[iNumServices]) { DEBUG(0,("add_a_service: out of memory!\n")); return (-1); -- 1.7.1