diff options
author | Ashwini Sharma <ak.ashwini1981@gmail.com> | 2014-08-12 07:09:01 -0500 |
---|---|---|
committer | Ashwini Sharma <ak.ashwini1981@gmail.com> | 2014-08-12 07:09:01 -0500 |
commit | 7eb3e4364c2bcebd2fdfef52c07f5101aa03e5bb (patch) | |
tree | 3a71927fe5198488d24af53b030d71797b67de35 /toys/pending/modprobe.c | |
parent | 6a77734d1b1ac1938abbc33014b60cfb49828824 (diff) | |
download | toybox-7eb3e4364c2bcebd2fdfef52c07f5101aa03e5bb.tar.gz |
Patches to commands for issues reported from static analysis tool.
portability.h.patch - it is for O_CLOEXEC, as compiler complained of it.
Makefile.patch - for cleaning generated/*.o files and libopts.dat file
[Fixup to uniq.c from Rob.]
Diffstat (limited to 'toys/pending/modprobe.c')
-rw-r--r-- | toys/pending/modprobe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/pending/modprobe.c b/toys/pending/modprobe.c index b8ef4824..cbf929b9 100644 --- a/toys/pending/modprobe.c +++ b/toys/pending/modprobe.c @@ -199,7 +199,7 @@ static int read_line(FILE *fl, char **li) } line[len] = '\0'; *li = xstrdup(line); - if (line) free(line); + free(line); if (nxtline) free(nxtline); return len; } @@ -302,6 +302,7 @@ static int depmode_read_entry(char *cmdname) } free(line); } + fclose(fe); return ret; } |