Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
changeset 10:88efea74818a VMS__malloc_brch
Fixed some free s missed before
| author | Me |
|---|---|
| date | Tue, 02 Nov 2010 16:48:22 -0700 |
| parents | 62326cc8e6f4 |
| children | 3562716ebdbd |
| files | BlockingQueue.c |
| diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line diff
1.1 --- a/BlockingQueue.c Sun Oct 31 20:24:00 2010 -0700 1.2 +++ b/BlockingQueue.c Tue Nov 02 16:48:22 2010 -0700 1.3 @@ -254,7 +254,7 @@ 1.4 void 1.5 freeSRSWQ( SRSWQueueStruc* Q ) 1.6 { 1.7 - free( Q ); 1.8 + VMS__free( Q ); 1.9 } 1.10 1.11 void* readSRSWQ( SRSWQueueStruc* Q ) 1.12 @@ -384,7 +384,8 @@ 1.13 1.14 retQ->numInternalQs = 0; 1.15 retQ->internalQsSz = 10; 1.16 - retQ->internalQs = VMS__malloc( retQ->internalQsSz * sizeof(SRSWQueueStruc *)); 1.17 + retQ->internalQs = VMS__malloc( retQ->internalQsSz * 1.18 + sizeof(SRSWQueueStruc *) ); 1.19 1.20 retQ->lastQReadFrom = 0; 1.21 1.22 @@ -414,7 +415,7 @@ 1.23 for( i = 0; i < oldSz; i++ ) 1.24 { Q->internalQs[i] = oldArray[i]; 1.25 } 1.26 - free( oldArray ); 1.27 + VMS__free( oldArray ); 1.28 } 1.29 Q->internalQs[ Q->numInternalQs - 1 ] = makeSRSWQ(); 1.30 return Q->numInternalQs - 1;
