OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tomoyo: fix memory leak in tomoyo_commit_ok()
[android-x86/kernel.git]
/
security
/
tomoyo
/
memory.c
diff --git
a/security/tomoyo/memory.c
b/security/tomoyo/memory.c
index
2976126
..
42a7b1b
100644
(file)
--- a/
security/tomoyo/memory.c
+++ b/
security/tomoyo/memory.c
@@
-75,6
+75,7
@@
void *tomoyo_commit_ok(void *data, const unsigned int size)
memset(data, 0, size);
return ptr;
}
+ kfree(ptr);
return NULL;
}