(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