The Samba-Bugzilla – Attachment 11993 Details for
Bug 11827
Memory leak in vfs_catia
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
11827.patch (text/plain), 1.42 KB, created by
Volker Lendecke
on 2016-04-14 11:52:07 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2016-04-14 11:52:07 UTC
Size:
1.42 KB
patch
obsolete
>From 593a1c89d4cbbea60697439c2d4cf2afcfeda986 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Sun, 10 Apr 2016 12:51:15 +0200 >Subject: [PATCH] vfs_catia: Fix bug 11827, memleak >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >add_srt should add the mappings to the linked list even if >mappings==NULL (the default) > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=11827 >Signed-off-by: Volker Lendecke <vl@samba.org> >Reviewed-by: Ralph Boehme <slow@samba.org> > >Autobuild-User(master): Ralph Böhme <slow@samba.org> >Autobuild-Date(master): Mon Apr 11 14:25:59 CEST 2016 on sn-devel-144 > >(cherry picked from commit 3e2af1568d150de1cb12fef40580f4880ac787ff) >--- > source3/modules/vfs_catia.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c >index c17ffa8..e270c0b 100644 >--- a/source3/modules/vfs_catia.c >+++ b/source3/modules/vfs_catia.c >@@ -141,6 +141,9 @@ static struct share_mapping_entry *add_srt(int snum, const char **mappings) > > ret->snum = snum; > >+ ret->next = srt_head; >+ srt_head = ret; >+ > if (mappings) { > ret->mappings = (struct char_mappings**) ((unsigned char*) ret + > sizeof(struct share_mapping_entry)); >@@ -176,9 +179,6 @@ static struct share_mapping_entry *add_srt(int snum, const char **mappings) > } > } > >- ret->next = srt_head; >- srt_head = ret; >- > return ret; > } > >-- >2.1.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
Flags:
slow
:
review+
Actions:
View
Attachments on
bug 11827
:
11975
| 11993