commit 0ae5c26281b6b7e321074f90e73bb518f876f192
parent 0eaf525dfabe2610d4c8e04d5bfdf0ba70f416fd
Author: sin <sin@2f30.org>
Date: Tue, 16 Sep 2014 13:30:41 +0100
Remember to free the buffers
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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;
}