diff options
-rw-r--r-- | plugins/fishlim/test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/fishlim/test.c b/plugins/fishlim/test.c index 09d19ca3..9158d01c 100644 --- a/plugins/fishlim/test.c +++ b/plugins/fishlim/test.c @@ -46,6 +46,7 @@ static int decrypt(int nick_count, char *nicks[]) { return 1; success: fprintf(stderr, "Decrypted text >>>%s<<<\n", msg); + free(msg); } return 0; } @@ -62,6 +63,7 @@ static int encrypt(int nick_count, char *nicks[]) { char *encrypted = fish_encrypt_for_nick(nicks[i], message); if (encrypted) { fprintf(stderr, "Encrypted [%s]: >>>%s<<<\n", nicks[i], encrypted); + free(encrypted); } else { error = true; } |