The Samba-Bugzilla – Attachment 6951 Details for
Bug 8490
modules/vfs_default.c:vfswrap_is_offline uses talloc_tos but does not free
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The patch in git --format-patch format
0001-Free-the-memory-talloc-d.patch (text/plain), 1.08 KB, created by
Richard Sharpe
on 2011-09-27 05:28:43 UTC
(
hide
)
Description:
The patch in git --format-patch format
Filename:
MIME Type:
Creator:
Richard Sharpe
Created:
2011-09-27 05:28:43 UTC
Size:
1.08 KB
patch
obsolete
>From 89747d85a6776c14c482036e8aaf59301f0b962c Mon Sep 17 00:00:00 2001 >From: Richard Sharpe <realrichardsharpe@gmail.com> >Date: Mon, 26 Sep 2011 22:25:43 -0700 >Subject: [PATCH] Free the memory talloc'd > >--- > source3/modules/vfs_default.c | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > >diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c >index 2dc7ec7..745b36c 100644 >--- a/source3/modules/vfs_default.c >+++ b/source3/modules/vfs_default.c >@@ -1621,6 +1621,7 @@ static bool vfswrap_is_offline(struct vfs_handle_struct *handle, > { > NTSTATUS status; > char *path; >+ bool offline = false; > > if (ISDOT(fname->base_name) || ISDOTDOT(fname->base_name)) { > return false; >@@ -1639,7 +1640,11 @@ static bool vfswrap_is_offline(struct vfs_handle_struct *handle, > return false; > } > >- return (dmapi_file_flags(path) & FILE_ATTRIBUTE_OFFLINE) != 0; >+ offline = dmapi_file_flags(path) & FILE_ATTRIBUTE_OFFLINE != 0; >+ >+ TALLOC_FREE(path); >+ >+ return offline; > } > > static int vfswrap_set_offline(struct vfs_handle_struct *handle, >-- >1.7.4.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8490
: 6951