Changeset 1857 in Sophya for trunk/SophyaPI/PIGcont/gp_alloc.c
- Timestamp:
- Jan 14, 2002, 2:42:24 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIGcont/gp_alloc.c
r1844 r1857 55 55 56 56 void contour_free(struct gnuplot_contours *ptr){ 57 char *c;57 //char *c; 58 58 struct coordinate *coords; 59 59 struct gnuplot_contours *old; … … 61 61 62 62 cur = ptr; 63 //printf("\n contour_free %x \n",cur); 63 64 while(cur){ 65 /*printf(" contour_free %x \n",cur);*/ 64 66 old = cur; 65 cur = cur->next; 66 c=old->label; 67 coords = old->coords; 68 if(c){free(c); c=NULL;} 67 cur = cur->next; 68 coords = old->coords; 69 69 if(coords){free(coords) ; coords = NULL;} 70 70 free(old); 71 } 71 old=NULL; 72 } 73 72 74 73 75 }
Note:
See TracChangeset
for help on using the changeset viewer.