[ipoib] Fix a memory leak.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 12 Oct 2008 07:30:48 +0000 (07:30 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 12 Oct 2008 07:30:48 +0000 (07:30 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1643 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_port.c

index ac978c1..915c616 100644 (file)
@@ -4942,6 +4942,7 @@ __endpt_mgr_add_bcast(
                p_port->port_num, p_mcast_rec );\r
        if( status != IB_SUCCESS )\r
        {\r
+               cl_obj_destroy( &p_endpt->obj );\r
                IPOIB_PRINT_EXIT( TRACE_LEVEL_ERROR, IPOIB_DBG_ERROR,\r
                        ("ipoib_create_mcast_endpt returned %s\n",\r
                        p_port->p_adapter->p_ifc->get_err_str( status )) );\r