summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-01-14 20:23:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:52 -0500
commit622480b64b32154c81441d19cf1e701d278bb9a8 (patch)
treedfe661c9ca2b1720e281e694bd6c24c541dec603
parentc3ba8b9a53617c75ffbcfa8ef32044cb1691d693 (diff)
downloadsamba-622480b64b32154c81441d19cf1e701d278bb9a8.tar.gz
samba-622480b64b32154c81441d19cf1e701d278bb9a8.tar.bz2
samba-622480b64b32154c81441d19cf1e701d278bb9a8.zip
r4738: Fix for bug #2238 - memory leak in shadow copy vfs.
Jeremy. (This used to be commit fb7f1aff7c96e4672641f80b74a058abf25d0d6d)
-rw-r--r--source3/modules/vfs_shadow_copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/modules/vfs_shadow_copy.c b/source3/modules/vfs_shadow_copy.c
index 133e8e9c64..513f33b3cb 100644
--- a/source3/modules/vfs_shadow_copy.c
+++ b/source3/modules/vfs_shadow_copy.c
@@ -137,6 +137,7 @@ int shadow_copy_closedir(vfs_handle_struct *handle, connection_struct *conn, DIR
{
shadow_copy_Dir *dirp = (shadow_copy_Dir *)_dirp;
+ SAFE_FREE(dirp->dirs);
SAFE_FREE(dirp);
return 0;