mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtstyle: Coverity 87244
This commit is contained in:
parent
a6cdaa8850
commit
8b39102f31
1 changed files with 4 additions and 2 deletions
|
@ -1112,7 +1112,7 @@ CheckFileType( void )
|
||||||
{
|
{
|
||||||
char *filename1 = "abcdefghijklmno";
|
char *filename1 = "abcdefghijklmno";
|
||||||
char *filename2 = "abcdefghijklmn";
|
char *filename2 = "abcdefghijklmn";
|
||||||
int fd, fd1;
|
int fd = -1, fd1 = -1;
|
||||||
char *tmpfile1, *tmpfile2;
|
char *tmpfile1, *tmpfile2;
|
||||||
|
|
||||||
/* get the $HOME environment varible and constuct the full file name */
|
/* get the $HOME environment varible and constuct the full file name */
|
||||||
|
@ -1162,7 +1162,9 @@ CheckFileType( void )
|
||||||
XtFree(tmpfile1);
|
XtFree(tmpfile1);
|
||||||
XtFree(tmpfile2);
|
XtFree(tmpfile2);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
if(fd1 != -1) {
|
||||||
close(fd1);
|
close(fd1);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue