[Pkg-samba-maint] r2736 - in branches/samba/lenny/debian: . patches
bubulle at alioth.debian.org
bubulle at alioth.debian.org
Fri May 1 04:29:15 UTC 2009
tags 520794 pending
thanks
Author: bubulle
Date: 2009-05-01 04:29:15 +0000 (Fri, 01 May 2009)
New Revision: 2736
Added:
branches/samba/lenny/debian/patches/bug_520794.patch
Modified:
branches/samba/lenny/debian/changelog
branches/samba/lenny/debian/patches/series
Log:
Fix memory leak in vfs_full_audit
Modified: branches/samba/lenny/debian/changelog
===================================================================
--- branches/samba/lenny/debian/changelog 2009-04-30 18:32:42 UTC (rev 2735)
+++ branches/samba/lenny/debian/changelog 2009-05-01 04:29:15 UTC (rev 2736)
@@ -3,6 +3,7 @@
* Have ldap_search_with_timeout() always returns LDAP_TIMELIMIT_EXCEEDED
when OpenLDAP times out. THat fixes daily winbind crashes for users
Closes: #522907
+ * Fix memory leak in vfs_full_audit. Closes: #520794
-- Christian Perrier <bubulle at debian.org> Fri, 24 Apr 2009 10:24:01 +0200
Added: branches/samba/lenny/debian/patches/bug_520794.patch
===================================================================
--- branches/samba/lenny/debian/patches/bug_520794.patch (rev 0)
+++ branches/samba/lenny/debian/patches/bug_520794.patch 2009-05-01 04:29:15 UTC (rev 2736)
@@ -0,0 +1,36 @@
+Goal: fix memory leak in vfs_full_audit
+
+Fixes: #520794
+
+Status wrt upstream: Fixed in 3.2.8
+
+Author: Volker Lendecke <vl at samba.org>
+
+Index: lenny/source/modules/vfs_full_audit.c
+===================================================================
+--- lenny.orig/source/modules/vfs_full_audit.c
++++ lenny/source/modules/vfs_full_audit.c
+@@ -701,6 +701,7 @@
+ static char *audit_prefix(TALLOC_CTX *ctx, connection_struct *conn)
+ {
+ char *prefix = NULL;
++ char *result;
+
+ prefix = talloc_strdup(ctx,
+ lp_parm_const_string(SNUM(conn), "full_audit",
+@@ -708,12 +709,14 @@
+ if (!prefix) {
+ return NULL;
+ }
+- return talloc_sub_advanced(ctx,
++ result = talloc_sub_advanced(ctx,
+ lp_servicename(SNUM(conn)), conn->user,
+ conn->connectpath, conn->gid,
+ get_current_username(),
+ current_user_info.domain,
+ prefix);
++ TALLOC_FREE(prefix);
++ return result;
+ }
+
+ static bool log_success(vfs_handle_struct *handle, vfs_op_type op)
Modified: branches/samba/lenny/debian/patches/series
===================================================================
--- branches/samba/lenny/debian/patches/series 2009-04-30 18:32:42 UTC (rev 2735)
+++ branches/samba/lenny/debian/patches/series 2009-05-01 04:29:15 UTC (rev 2736)
@@ -27,4 +27,5 @@
bug_514703_upstream_6021.patch
bug_519974_upstream_5957.patch
bug_520284_upstream_6160.patch
+bug_520794.patch
bug_522907_upstream_6279.patch
More information about the Pkg-samba-maint
mailing list