Mercurial > hg > toybox
comparison toys/posix/comm.c @ 1518:4bfbd8b96f66 draft
Various bugfixes (mostly resource leaks) from Ashwini Sharma's static analysis, plus occasional tweak by me while reviewing them.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 09 Oct 2014 13:43:32 -0500 |
parents | 786841fdb1e0 |
children |
comparison
equal
deleted
inserted
replaced
1517:7dacf2eda737 | 1518:4bfbd8b96f66 |
---|---|
75 writeline(line[i], i); | 75 writeline(line[i], i); |
76 free(line[i]); | 76 free(line[i]); |
77 line[i] = get_line(file[i]); | 77 line[i] = get_line(file[i]); |
78 } | 78 } |
79 | 79 |
80 if (CFG_TOYBOX_FREE) for (i = 0; i < 2; i--) xclose(file[i]); | 80 if (CFG_TOYBOX_FREE) for (i = 0; i < 2; i++) xclose(file[i]); |
81 } | 81 } |