From 3b30b15798435370f31fa27c19cb45aed67e4cc5 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 25 Nov 2014 17:28:22 -0600 Subject: More ccpcheck-related fixes --- apps/system/vi/vi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/system') diff --git a/apps/system/vi/vi.c b/apps/system/vi/vi.c index c2524f887..6289ee219 100644 --- a/apps/system/vi/vi.c +++ b/apps/system/vi/vi.c @@ -1230,6 +1230,7 @@ static bool vi_savetext(FAR struct vi_s *vi, FAR const char *filename, /* Report the error (or partial write). EINTR is not handled. */ vi_error(vi, g_fmtcmdfail, "fwrite", errno); + (void)fclose(stream); return false; } -- cgit v1.2.3