projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f190a0
)
Fix page_cache leak in cache_resize
author
Orit Wasserman
<owasserm@redhat.com>
Mon, 25 Feb 2013 17:12:01 +0000
(19:12 +0200)
committer
Juan Quintela
<quintela@redhat.com>
Mon, 11 Mar 2013 12:32:03 +0000
(13:32 +0100)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Juan Quintela <quintela@redhat.com>
page_cache.c
patch
|
blob
|
history
diff --git
a/page_cache.c
b/page_cache.c
index ba5640bd73120314f81f2014de5ffb8247cdb0cc..748957bc421a3a1545ed94c4f3e37d3b740e3c54 100644
(file)
--- a/
page_cache.c
+++ b/
page_cache.c
@@
-208,6
+208,7
@@
int64_t cache_resize(PageCache *cache, int64_t new_num_pages)
}
}
+ g_free(cache->page_cache);
cache->page_cache = new_cache->page_cache;
cache->max_num_items = new_cache->max_num_items;
cache->num_items = new_cache->num_items;