diff options
| -rw-r--r-- | btpd/cli_if.c | 1 | ||||
| -rw-r--r-- | btpd/content.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/btpd/cli_if.c b/btpd/cli_if.c index 23e30eb..71e9ca2 100644 --- a/btpd/cli_if.c +++ b/btpd/cli_if.c @@ -220,6 +220,7 @@ cli_read_cb(int sd, short type, void *arg) if (cmd_dispatch(cli, msg) != 0) goto error; + free(msg); event_add(&cli->read, NULL); return; diff --git a/btpd/content.c b/btpd/content.c index 46dbe18..21339ca 100644 --- a/btpd/content.c +++ b/btpd/content.c @@ -168,6 +168,7 @@ cm_kill(struct torrent *tp) free(cm->block_field); free(cm->hold_field); free(cm->pos_field); + free(cm); tp->cm = NULL; } |