Mercurial > pt1.oyama
changeset 142:d65c15276b5e
Fix consume large amounts of memory.
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Sun, 29 Jul 2012 22:56:53 +0900 |
parents | 519a035533f6 |
children | e72dd5e8d53f |
files | src/recpt1.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/recpt1.c Sun Jul 29 18:43:46 2012 +0900 +++ b/src/recpt1.c Sun Jul 29 22:56:53 2012 +0900 @@ -152,7 +152,7 @@ create_queue(size_t size) { QUEUE_T *p_queue; - int memsize = sizeof(QUEUE_T) + size * sizeof(BUFSZ); + int memsize = sizeof(QUEUE_T) + size * sizeof(BUFSZ*); p_queue = (QUEUE_T*)calloc(memsize, sizeof(char)); @@ -174,7 +174,7 @@ create_stream_queue(size_t size) { STREAM_QUEUE_T *p_queue; - int memsize = sizeof(STREAM_QUEUE_T) + size * sizeof(ARIB_STD_B25_BUFFER); + int memsize = sizeof(STREAM_QUEUE_T) + size * sizeof(ARIB_STD_B25_BUFFER*); p_queue = (STREAM_QUEUE_T*)calloc(memsize, sizeof(char));