diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-11-08 13:35:10 +0800 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-08 15:08:42 +0900 |
commit | 899be96db75451ba98cb217109ef4cf2ee6de927 (patch) | |
tree | b84ded26b414c160a6a430f55b38f4cc9c28dfa7 /lib/proportions.c | |
parent | 151f52f09c5728ecfdd0c289da1a4b30bb416f2c (diff) | |
download | blackbird-op-linux-899be96db75451ba98cb217109ef4cf2ee6de927.tar.gz blackbird-op-linux-899be96db75451ba98cb217109ef4cf2ee6de927.zip |
rtc: rtc-sh - fix a memory leak
request_mem_region() will call kzalloc to allocate memory for struct resource.
release_resource() unregisters the resource but does not free the allocated
memory, thus use release_mem_region() instead to fix the memory leak.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'lib/proportions.c')
0 files changed, 0 insertions, 0 deletions