dticon: Coverity 89192
authorPeter Howkins <flibble@users.sf.net>
Tue, 3 Jul 2018 17:20:35 +0000 (18:20 +0100)
committerPeter Howkins <flibble@users.sf.net>
Tue, 3 Jul 2018 17:20:35 +0000 (18:20 +0100)
cde/programs/dticon/utils.c

index 91d8294f522b85cacb84c33aac92c0e6d7298be0..49654fb92fdfbc8001421d55202136b0e2f264e2 100644 (file)
@@ -2342,6 +2342,7 @@ SaveSession( void )
        fprintf(stderr, "write() to session failed\n");
         XtFree ((char *)path);
         XtFree ((char *)name);
+        close(fd);
         return;    
     }