diff options
author | Hemanth Thummala <hemanth.thummala@nutanix.com> | 2016-02-02 10:33:20 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-02-15 11:24:24 +0100 |
commit | 11b89bdc2570b670149f7f3bd8d98224b181b75c (patch) | |
tree | c34efd474f3a5260910996338e18e2c6970ce3d6 | |
parent | 4526ba628ed7ee2bbd6751fb0155efff0b970dba (diff) | |
download | samba-11b89bdc2570b670149f7f3bd8d98224b181b75c.tar.gz |
loadparm: Fix memory leak issue.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11708
Signed-off-by: Hemanth Thummala <hemanth.thummala@nutanix.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Feb 4 12:39:14 CET 2016 on sn-devel-144
(cherry picked from commit 8247d93701ed838190fe74044a63a56d63d37bf5)
-rw-r--r-- | 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 7fd1c0d9b48..c576b22f143 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1400,7 +1400,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); |