summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-16 13:30:41 +0100
committersin <sin@2f30.org>2014-09-16 13:30:41 +0100
commit0ae5c26281b6b7e321074f90e73bb518f876f192 (patch)
tree814c2485d05ab5902b18e607d6fb3a80930c9d8f
parent0eaf525dfabe2610d4c8e04d5bfdf0ba70f416fd (diff)
Remember to free the buffers
-rw-r--r--ratatox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ratatox.c b/ratatox.c
index d9e3ab9..a4ba9ff 100644
--- a/ratatox.c
+++ b/ratatox.c
@@ -928,6 +928,7 @@ loop(void)
if (f->t.state == TRANSFER_DONE) {
printout("Transfer complete\n");
f->t.state = TRANSFER_NONE;
+ free(f->t.buf);
}
break;
}
@@ -960,6 +961,7 @@ loop(void)
if (f->t.state == TRANSFER_DONE) {
printout("Transfer complete\n");
f->t.state = TRANSFER_NONE;
+ free(f->t.buf);
}
break;
}