libtt: Fixes for Coverity fixes that I thought I'd already fixed.
This commit is contained in:
@@ -648,7 +648,6 @@ _create_datfile(isfname)
|
||||
|
||||
fd = open (namebuf, O_CREAT | O_EXCL | O_RDWR, 0666);
|
||||
if (fd > -1) {
|
||||
fcntl(fd, F_SETFD, 1); /* Close on exec */
|
||||
/* Close on exec */
|
||||
if(fcntl(fd, F_SETFD, 1) == -1) {
|
||||
close(fd);
|
||||
|
||||
@@ -318,6 +318,7 @@ isrepair(isfname, verbose)
|
||||
(void)sigprocmask(SIG_SETMASK, &oldmask, NULL);
|
||||
|
||||
print("...File repaired\n");
|
||||
if (buffer != Buffer) free(buffer);
|
||||
return (ISOK);
|
||||
|
||||
ERROR:
|
||||
|
||||
Reference in New Issue
Block a user