diff options
Diffstat (limited to 'replay.c')
-rw-r--r-- | replay.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -166,6 +166,7 @@ int relaylines(int seconds) { int timestamp = gettimestamp(str); if (timestamp < 1) { printf("Error reading timestamp from replay log file.\n"); + fclose(fp); return -1; } @@ -221,6 +222,7 @@ int readrelayline(int seconds, int linenum, char *str) { strncpy(str, line, strlen(line)); str[strlen(line)] = '\0'; + fclose(fp); return 1; } count++; @@ -228,6 +230,7 @@ int readrelayline(int seconds, int linenum, char *str) { } // If we got here something went wrong + fclose(fp); return 0; } |