From da35cd7bd230b2299f9566f4775bd98fda3024f8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 24 Jan 2013 16:39:05 +0100 Subject: Avoid a very small memleak on talloc_tos() "fname" did leak on talloc_tos(). Not really a bad memleak, but as I just came across it I thought I might just fix it Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Jan 25 00:54:01 CET 2013 on sn-devel-104 --- source3/lib/util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/lib/util.c b/source3/lib/util.c index 5ffce583db..e0cae91a0d 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1522,10 +1522,7 @@ static char *xx_path(const char *name, const char *rootpath) "Error was %s\n", fname, name, strerror(errno))); } - return talloc_asprintf(talloc_tos(), - "%s/%s", - fname, - name); + return talloc_asprintf_append(fname, "/%s", name); } /** -- cgit