projects
/
platform
/
core
/
uifw
/
pepper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeb7bf4
)
pepper: Bug fix in ID allocator
57/56957/1
author
Taekyun Kim
<tkq.kim@samsung.com>
Thu, 14 Jan 2016 01:15:19 +0000
(10:15 +0900)
committer
Taekyun Kim
<tkq.kim@samsung.com>
Thu, 14 Jan 2016 01:15:19 +0000
(10:15 +0900)
Change-Id: I5286c34f444b70ef64aaac0942d46dbd760668a6
src/lib/pepper/utils.c
patch
|
blob
|
history
diff --git
a/src/lib/pepper/utils.c
b/src/lib/pepper/utils.c
index a4c852e6cd3ae24f5cf114ad6b5cd6861d66bfa7..17e279406651c59cb2ec31cc93461dfa41d23807 100644
(file)
--- a/
src/lib/pepper/utils.c
+++ b/
src/lib/pepper/utils.c
@@
-57,7
+57,8
@@
pepper_id_allocator_free(pepper_id_allocator_t *allocator, uint32_t id)
if (allocator->free_id_size <= allocator->free_id_count)
{
allocator->free_id_size += 64;
- allocator->free_ids = realloc(allocator->free_ids, allocator->free_id_size);
+ allocator->free_ids = realloc(allocator->free_ids,
+ allocator->free_id_size * sizeof(uint32_t));
}
allocator->free_ids[allocator->free_id_count++] = id;