HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Release coccinelle-0.2.3rc4
[bpt/coccinelle.git]
/
tests
/
bad_kfree.res
1
int main () {
2
for (i = 0; i < IVTV_VBI_FRAMES; i++) {
3
a = itv[i];
4
kfree(itv[i]);
5
}
6
print("foo",itv[i]);
7
print("foo",itv[i]);
8
a = itv[i];
9
itv[i]=12;
10
a = itv[i];
11
}
12
13
int bad () {
14
kfree(itv[i]);
15
print("foo",itv[i]);
16
print("foo",itv[i]);
17
a = NULL;
18
itv[i]=12;
19
a = itv[i];
20
}