summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-30 12:11:53 +0200
committerVolker Lendecke <vl@samba.org>2011-05-31 21:47:07 +0200
commitd77854fbb22bc9237cea14aae1179bbfe3bd0998 (patch)
tree164b8cb414e545ce934ee62144879931c59e5531 /source3/modules
parent0ec9a90c29b86435f32c1d47d89df85fa51742f2 (diff)
downloadsamba-d77854fbb22bc9237cea14aae1179bbfe3bd0998.tar.gz
samba-d77854fbb22bc9237cea14aae1179bbfe3bd0998.tar.bz2
samba-d77854fbb22bc9237cea14aae1179bbfe3bd0998.zip
struct make "struct shadow_copy_data" its own talloc context
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_shadow_copy.c2
-rw-r--r--source3/modules/vfs_shadow_copy2.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_shadow_copy.c b/source3/modules/vfs_shadow_copy.c
index c1ffac7498..1db47d216b 100644
--- a/source3/modules/vfs_shadow_copy.c
+++ b/source3/modules/vfs_shadow_copy.c
@@ -253,7 +253,7 @@ static int shadow_copy_get_shadow_copy_data(vfs_handle_struct *handle,
continue;
}
- tlabels = (SHADOW_COPY_LABEL *)TALLOC_REALLOC(shadow_copy_data->mem_ctx,
+ tlabels = (SHADOW_COPY_LABEL *)TALLOC_REALLOC(shadow_copy_data,
shadow_copy_data->labels,
(shadow_copy_data->num_volumes+1)*sizeof(SHADOW_COPY_LABEL));
if (tlabels == NULL) {
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index fd32f174e8..25cc5d4a02 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -918,7 +918,7 @@ static int shadow_copy2_get_shadow_copy2_data(vfs_handle_struct *handle,
continue;
}
- tlabels = talloc_realloc(shadow_copy2_data->mem_ctx,
+ tlabels = talloc_realloc(shadow_copy2_data,
shadow_copy2_data->labels,
SHADOW_COPY_LABEL, shadow_copy2_data->num_volumes+1);
if (tlabels == NULL) {