diff options
author | Volker Lendecke <vl@samba.org> | 2011-05-30 12:11:53 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-05-31 21:47:07 +0200 |
commit | d77854fbb22bc9237cea14aae1179bbfe3bd0998 (patch) | |
tree | 164b8cb414e545ce934ee62144879931c59e5531 /source3/modules | |
parent | 0ec9a90c29b86435f32c1d47d89df85fa51742f2 (diff) | |
download | samba-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.c | 2 | ||||
-rw-r--r-- | source3/modules/vfs_shadow_copy2.c | 2 |
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) { |