# HG changeset patch # User Naoya OYAMA # Date 1343570213 -32400 # Node ID d65c15276b5e6d81f901c8f71a36f9762f2f5be9 # Parent 519a035533f6fee9d3f84fafbe33efacf2d52694 Fix consume large amounts of memory. diff -r 519a035533f6 -r d65c15276b5e src/recpt1.c --- 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));