Changeset 16464
- Timestamp:
- Feb 13, 2008, 4:27:58 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.basic/run_for.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.basic/run_for.c
r14178 r16464 38 38 39 39 /* check for end-of-data syntax error */ 40 if (input == (char *)NULL) {40 if (input == NULL) { 41 41 if (ThisList == 0) { 42 42 gprint (GP_ERR, "end loop with 'END'\n"); … … 59 59 if (!strncasecmp (input, "END", 3)) { 60 60 depth --; 61 if (depth < 0) break; 61 if (depth < 0) { 62 free (input); 63 break; 64 } 62 65 } 63 66 … … 74 77 75 78 /* cleanup loop data */ 76 free (input);77 79 loop.Nlines = i; 78 80 REALLOCATE (loop.line, char *, MAX (loop.Nlines, 1));
Note:
See TracChangeset
for help on using the changeset viewer.
