libtt: Fixes for Coverity fixes that I thought I'd already fixed.

This commit is contained in:
Peter Howkins
2018-04-24 00:05:56 +01:00
parent d52e9390ec
commit 9088d6b54e
8 changed files with 11 additions and 2 deletions

View File

@@ -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);

View File

@@ -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: