Applied in 2882.

Thanks
Tzachi

From: Smith, Stan [mailto:[email protected]]
Sent: Tuesday, August 31, 2010 8:15 PM
To: Tzachi Dar; [email protected]
Subject: RE: Patch:[IBBUS] Fix a memory leak

Looks good.

________________________________
From: [email protected] 
[mailto:[email protected]] On Behalf Of Tzachi Dar
Sent: Tuesday, August 31, 2010 6:37 AM
To: [email protected]
Subject: [ofw] Patch:[IBBUS] Fix a memory leak
(mlnx 5187) This memory leak was found while running with driver verifier

Index: B:/users/tzachid/projinf9/trunk/core/al/kernel/al_dev.c
===================================================================
--- B:/users/tzachid/projinf9/trunk/core/al/kernel/al_dev.c       (revision 
5186)
+++ B:/users/tzachid/projinf9/trunk/core/al/kernel/al_dev.c    (revision 5187)
@@ -188,6 +188,7 @@
                if( cl_status != CL_SUCCESS )
                {
                                __destroy_open_context( p_context );
+                             cl_free( p_context );
                                return cl_status;
                }

@@ -214,6 +215,7 @@
                else
                {
                                __destroy_open_context( p_context );
+                             cl_free( p_context );
                                cl_status = CL_INSUFFICIENT_RESOURCES;
                }

_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to