Thread (1 message) 1 message, 1 author, 2016-05-31

Re: [PATCH] Fix assorted memory leaks on error paths

From: Jarod Wilson <hidden>
Date: 2016-05-31 21:33:17

On Thu, May 26, 2016 at 08:10:10AM +0300, Leon Romanovsky wrote:
On Wed, May 18, 2016 at 01:07:47PM -0400, Jarod Wilson wrote:
quoted
Clang noticed that we might leak mcg_params.ib_devname in failure paths.
There are additional leaks after fixing this initial one that it still
reported, here's hoping I've got them all now...
...
quoted
 	return send_destroy_ctx(&ctx,&user_param,&mcg_params);
+
+failure2:
Where is "failure1" ?
quoted
+	free(my_dest);
+	free(rem_dest);
+	destroy_ctx(&ctx,&user_param);
+failure:
I considered 'failure' to be failure1, I guess. Really not picky on the
label names.

-- 
Jarod Wilson
jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help