netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] isdn/gigaset: add a kfree() to error path
@ 2010-06-28 21:20 Dan Carpenter
  2010-06-29 22:18 ` Tilman Schmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2010-06-28 21:20 UTC (permalink / raw)
  To: Hansjoerg Lipp
  Cc: Tilman Schmidt, Karsten Keil, David S. Miller, gigaset307x-common,
	netdev, kernel-janitors

We should free "commands" here.  The main reason is to please the static
checkers.

Signed-off-by: Dan Carpenter <error27@gmail.com>

diff --git a/drivers/isdn/gigaset/i4l.c b/drivers/isdn/gigaset/i4l.c
index f01c3c2..f1abb8f 100644
--- a/drivers/isdn/gigaset/i4l.c
+++ b/drivers/isdn/gigaset/i4l.c
@@ -419,6 +419,7 @@ oom:
 	dev_err(bcs->cs->dev, "out of memory\n");
 	for (i = 0; i < AT_NUM; ++i)
 		kfree(commands[i]);
+	kfree(commands);
 	return -ENOMEM;
 }
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-29 22:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-28 21:20 [patch] isdn/gigaset: add a kfree() to error path Dan Carpenter
2010-06-29 22:18 ` Tilman Schmidt
2010-06-29 22:33   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).