diff options
author | Volker Lendecke <vl@samba.org> | 2017-10-16 17:43:09 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2017-10-25 12:59:22 +0200 |
commit | eec0b431998fcd56688712928a7dd4d31f44de96 (patch) | |
tree | c571bf10dade159c6fe31a3b32c30926b3c2b9d5 /source3/modules | |
parent | d179770295ad0952c748fc08741e3bda141ce458 (diff) | |
download | samba-eec0b431998fcd56688712928a7dd4d31f44de96.tar.gz |
vfs_catia: Fix a potential memleak
Together with the previous commit this fixes a memleak (twice) that
happens when vfs_catia is loaded with no mappings defined.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13090
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Oct 17 18:53:48 CEST 2017 on sn-devel-144
(cherry picked from commit f6d6af3b2d5efcd160c1e5e09778fb1129530be0)
Autobuild-User(v4-7-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-7-test): Wed Oct 25 12:59:23 CEST 2017 on sn-devel-144
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_catia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c index 9d163855454..e22175f3fa8 100644 --- a/source3/modules/vfs_catia.c +++ b/source3/modules/vfs_catia.c @@ -141,7 +141,7 @@ static NTSTATUS catia_string_replace_allocate(connection_struct *conn, if (!init_mappings(conn, &selected)) { /* No mappings found. Just use the old name */ - *mapped_name = talloc_strdup(NULL, name_in); + *mapped_name = talloc_strdup(talloc_tos(), name_in); if (!*mapped_name) { errno = ENOMEM; return NT_STATUS_NO_MEMORY; |