GUAC-236: Do not attempt to lock/close fd if open fails.

This commit is contained in:
Michael Jumper 2016-03-16 21:52:30 -07:00
parent 55f5d1cca3
commit 1dfdcec34c

View File

@ -104,6 +104,10 @@ static int guac_common_recording_open(const char* path,
} }
/* Abort if we've run out of filenames */
if (fd == -1)
return -1;
} /* end if open succeeded */ } /* end if open succeeded */
/* Lock entire output file for writing by the current process */ /* Lock entire output file for writing by the current process */