- Timestamp:
- Nov 29, 2015, 9:35:02 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20151113/Ohana/src/opihi/lib.shell/VectorOps.c
r33662 r39194 15 15 16 16 // this function is NOT thread protected : it is only used in startup and/or shutdown 17 void FreeVector (Vector *vec) { 18 19 if (!vec) return; 20 if (vec->elements.Int) { 21 free (vec->elements.Int); 22 } 23 free (vec); 24 } 25 26 // this function is NOT thread protected : it is only used in startup and/or shutdown 17 27 void FreeVectorArray (Vector **vec, int Nvec) { 18 28 … … 21 31 if (!vec) return; 22 32 for (i = 0; i < Nvec; i++) { 23 if (!vec[i]) continue; 24 if (vec[i]->elements.Int) { 25 free (vec[i]->elements.Int); 26 } 27 free (vec[i]); 33 FreeVector (vec[i]); 28 34 } 29 35 free (vec);
Note:
See TracChangeset
for help on using the changeset viewer.
