The Samba-Bugzilla – Attachment 8586 Details for
Bug 9685
Fix a memory leak in spoolss rpc server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
v4-0-test patch
look (text/plain), 845 bytes, created by
Andreas Schneider
on 2013-02-26 15:13:50 UTC
(
hide
)
Description:
v4-0-test patch
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2013-02-26 15:13:50 UTC
Size:
845 bytes
patch
obsolete
>From 7af336dcb9238b3cf4882422ccdac496a75afcf8 Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Wed, 20 Feb 2013 09:06:51 +0100 >Subject: [PATCH] s3-spoolss: Don't leak memory. Reviewed-by: Alexander Bokovoy > <ab@samba.org> > >--- > source3/rpc_server/spoolss/srv_spoolss_nt.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c >index 1b3a16f..ae3e991 100644 >--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c >+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c >@@ -4857,8 +4857,10 @@ static WERROR string_array_from_driver_info(TALLOC_CTX *mem_ctx, > &array, &num_strings); > } > >- if (presult) { >+ if (presult != NULL) { > *presult = array; >+ } else { >+ talloc_free(array); > } > > return WERR_OK; >-- >1.8.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:
ddiss
:
review+
Actions:
View
Attachments on
bug 9685
: 8586