Tag: 0bb943c7a2136716757a263f604d26309fd98042

tracing: kernel/trace/trace.c: introduce missing kfree()

Author: Julia Lawall <julia@diku.dk> Impact: fix memory leak Error handling code following a kzalloc should free the allocated data. The semantic match that finds the problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // @r exists@ local idexpression x; statement S; expression E; identifier f,l; position p1,p2; expression *ptr != NULL; @@ ( if ((x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(…)) == …

Continue reading