diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2016-01-13 13:10:27 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2016-01-13 13:10:27 +0000 |
commit | 5386e17a73b1ca80debd087040cd38a79a39252f (patch) | |
tree | a3bf479faa39572919d29fd1fd47834579c8383d | |
parent | 57cf431d3bb0f91228fd73eff5055b26a0657c61 (diff) |
there's a resource leak here. missing a fclose(3) to kill the stream.
OK deraadt@ mestre@
-rw-r--r-- | games/sail/lo_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/games/sail/lo_main.c b/games/sail/lo_main.c index b696a2d17fe..b160058816e 100644 --- a/games/sail/lo_main.c +++ b/games/sail/lo_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lo_main.c,v 1.10 2016/01/08 20:26:33 mestre Exp $ */ +/* $OpenBSD: lo_main.c,v 1.11 2016/01/13 13:10:26 gsoares Exp $ */ /* $NetBSD: lo_main.c,v 1.3 1995/04/22 10:36:59 cgd Exp $ */ /* @@ -86,5 +86,6 @@ lo_main(void) (float) log.l_netpoints / ship->specs->pts); } printf("\n%d people have played.\n", people); + fclose(fp); return 0; } |