summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--replay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/replay.c b/replay.c
index bdfe2c0..2bd68ae 100644
--- a/replay.c
+++ b/replay.c
@@ -461,6 +461,7 @@ long lastspokelinenumber(char *nick, char *basedir) {
// Try to split
if ((token = strsep(&strcopy, " ")) == NULL) {
debugprint(DEBUG_CRIT, "lastspokelinenumber(): error splitting string on iteration '%d', returning -1!\n", i);
+ free(strcopyPtr);
fclose(fp);
return -1;
}