Skip to content

Commit

Permalink
Fix memory problems
Browse files Browse the repository at this point in the history
  • Loading branch information
wangbin579 committed Jun 16, 2014
1 parent 7961cb3 commit 8853681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gryphon/tc_packets_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static unsigned char *alloc_pool_mem(int length)
p = clt_settings.mem_pool + clt_settings.mem_pool_index;
clt_settings.mem_pool_index += length;

if (clt_settings.mem_pool_index >= clt_settings.mem_pool_size) {
if (clt_settings.mem_pool_index > clt_settings.mem_pool_size) {
tc_log_info(LOG_ERR, 0, "pool full, calloc error for frame data");
return NULL;
}
Expand Down

0 comments on commit 8853681

Please sign in to comment.