Changeset 5170 for pjproject/trunk/pjlib/src/pjlib-test/pool.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/pool.c
r4537 r5170 191 191 /* Drain the pool until there's nothing left. */ 192 192 while (freesize > 0) { 193 int size ;193 int size2; 194 194 195 195 if (freesize > 255) 196 size = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) &196 size2 = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) & 197 197 ~(PJ_POOL_ALIGNMENT - 1); 198 198 else 199 size = (int)freesize;200 201 p = pj_pool_alloc(pool, size );199 size2 = (int)freesize; 200 201 p = pj_pool_alloc(pool, size2); 202 202 if (!p) { 203 203 status=-20; goto on_error; 204 204 } 205 205 206 freesize -= size ;206 freesize -= size2; 207 207 } 208 208
Note: See TracChangeset
for help on using the changeset viewer.