RE: resource leak in librdmacm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 	ch = rdma_create_event_channel();
> 	if (ch == NULL)
> 		printf("rdma_create_event_channel failed\n");
> 
> 	ret = rdma_create_id(ch, &id, NULL, RDMA_PS_TCP);
> 	if (ret != 0)
> 		printf("rdma_create_id failed\n");
> 
> 	ret = rdma_bind_addr(id, (struct sockaddr *) &ipoib_addr);
> 
> 	if (ret != 0)
> 		printf("rdma_bind_addr failed\n");
> 
> 	rdma_destroy_event_channel(ch);

This call should fail, since there's still a valid id open on it.

> 	rdma_destroy_id(id);
> }

- Sean




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux