Julia Lawall
b2aff96327
net/netfilter/ipvs: Eliminate memory leak
...
__ip_vs_service_get and __ip_vs_svc_fwm_get increment a reference count, so
that reference count should be decremented before leaving the function in an
error case.
A simplified version of the semantic match that finds this problem is:
(http://coccinelle.lip6.fr/ )
// <smpl>
@r exists@
local idexpression x;
expression E;
identifier f1;
iterator I;
@@
x = __ip_vs_service_get(...);
<... when != x
when != true (x == NULL || ...)
when != if (...) { <+...x...+> }
when != I (...) { <+...x...+> }
(
x == NULL
|
x == E
|
x->f1
)
...>
* return ...;
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk >
Signed-off-by: Simon Horman <horms@verge.net.au >
Signed-off-by: David S. Miller <davem@davemloft.net >
2010-08-25 16:36:50 -07:00
..
2010-08-25 16:36:50 -07:00
2010-03-30 22:02:32 +09:00
2010-07-23 12:59:36 +02:00
2010-07-23 12:59:36 +02:00
2010-06-25 14:46:56 +02:00
2010-05-13 15:02:08 +02:00
2010-08-02 17:56:28 +02:00
2010-05-10 18:47:57 +02:00
2010-02-15 18:13:33 +01:00
2010-08-02 17:06:19 +02:00
2010-05-13 15:02:08 +02:00
2010-06-10 23:31:35 -07:00
2010-03-30 22:02:32 +09:00
2010-05-13 15:02:08 +02:00
2010-06-10 23:31:35 -07:00
2010-06-08 16:09:52 +02:00
2010-02-15 18:13:33 +01:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-05-13 15:02:08 +02:00
2010-07-15 17:09:04 +02:00
2010-02-15 17:45:08 +01:00
2010-02-15 17:45:08 +01:00
2010-05-10 17:45:56 +02:00
2010-03-30 22:02:32 +09:00
2010-05-14 21:18:17 +02:00
2010-05-13 15:02:08 +02:00
2010-05-13 15:02:08 +02:00
2010-05-13 15:02:08 +02:00
2010-05-10 18:47:57 +02:00
2010-05-17 17:18:50 -07:00
2010-06-15 13:49:24 -07:00
2010-06-15 13:49:24 -07:00
2010-05-13 15:02:08 +02:00
2010-05-31 16:41:35 +02:00
2010-07-15 17:20:46 +02:00
2010-05-11 18:31:17 +02:00
2010-06-08 16:09:52 +02:00
2010-05-11 18:33:37 +02:00
2010-06-25 14:44:07 +02:00
2010-05-11 18:35:27 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:31:17 +02:00
2010-06-08 16:09:52 +02:00
2010-07-23 12:59:36 +02:00
2010-06-08 16:09:52 +02:00
2010-05-11 18:35:27 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:31:17 +02:00
2010-05-11 18:35:27 +02:00
2010-08-19 17:16:25 -07:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:31:17 +02:00
2010-06-22 08:13:31 +02:00
2010-05-11 18:33:37 +02:00
2010-07-23 12:42:58 +02:00
2010-05-11 18:31:17 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:35:27 +02:00
2010-05-11 18:31:17 +02:00
2010-05-11 18:31:17 +02:00
2010-06-08 16:09:52 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-07-23 14:07:47 +02:00
2010-05-11 18:33:37 +02:00
2010-06-11 18:37:08 -07:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:35:27 +02:00
2010-02-10 17:50:47 +01:00
2010-06-09 14:47:40 +02:00
2010-05-11 18:31:17 +02:00
2010-06-08 16:09:52 +02:00
2010-06-08 16:09:52 +02:00
2010-06-01 12:00:41 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:35:27 +02:00
2010-06-15 11:56:19 -07:00
2010-05-11 18:31:17 +02:00
2010-05-11 18:35:27 +02:00
2010-06-15 17:31:06 +02:00
2010-05-13 15:16:27 +02:00
2010-07-09 17:31:49 +02:00
2010-05-11 18:31:17 +02:00
2010-05-11 18:33:37 +02:00