summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-08-02 20:59:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:22 -0500
commita4cdedcc085e0b9a94e6757a9b427af503ad6593 (patch)
treec6449c72e196f73ade52fae3234ada41f6aa7616 /source3/rpc_server
parent6ab9ff8e9fd263c51637ea84c7c9fa392e4cf30f (diff)
downloadsamba-a4cdedcc085e0b9a94e6757a9b427af503ad6593.tar.gz
samba-a4cdedcc085e0b9a94e6757a9b427af503ad6593.tar.bz2
samba-a4cdedcc085e0b9a94e6757a9b427af503ad6593.zip
r8950: Fix one more mem leak found by Gunther.
Jeremy. (This used to be commit 547c6ee0a965b425719cdb834dd5d68a3a3e7117)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_dfs_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_dfs_nt.c b/source3/rpc_server/srv_dfs_nt.c
index 938b01540f..b005192010 100644
--- a/source3/rpc_server/srv_dfs_nt.c
+++ b/source3/rpc_server/srv_dfs_nt.c
@@ -319,7 +319,7 @@ WERROR _dfs_enum(pipes_struct *p, DFS_Q_DFS_ENUM *q_u, DFS_R_DFS_ENUM *r_u)
struct junction_map jn[MAX_MSDFS_JUNCTIONS];
int num_jn = 0;
- num_jn = enum_msdfs_links(jn, ARRAY_SIZE(jn));
+ num_jn = enum_msdfs_links(p->mem_ctx, jn, ARRAY_SIZE(jn));
vfs_ChDir(p->conn,p->conn->connectpath);
DEBUG(5,("make_reply_dfs_enum: %d junctions found in Dfs, doing level %d\n", num_jn, level));