summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-01-24 16:39:05 +0100
committerJeremy Allison <jra@samba.org>2013-01-25 00:54:01 +0100
commitda35cd7bd230b2299f9566f4775bd98fda3024f8 (patch)
tree6a8cc1fcb3e7805ecd91869eb63b34d06573b718 /source3
parent996a10cdea4a1ea23bc86c8bc57c4ca02e285b17 (diff)
downloadsamba-da35cd7bd230b2299f9566f4775bd98fda3024f8.tar.gz
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 <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jan 25 00:54:01 CET 2013 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 5ffce583db4..e0cae91a0da 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);
}
/**