Skip to content

Commit

Permalink
Fix console session close bug (#466)
Browse files Browse the repository at this point in the history
* Remove redundant file close.

* add commentary.
  • Loading branch information
bakerstu authored Nov 21, 2020
1 parent c044aed commit 028f3d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/console/Console.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ private:
*/
HASSERT(fdIn == fdOut);
fclose(fp);
close(fdIn);
/* There is no need for a "close(fdIn)" because the "fclose(fp)"
* will already have completed that operation.
*/
free(line);
}

Expand Down

0 comments on commit 028f3d4

Please sign in to comment.