cut, uudecode: free buf after use

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
Hiltjo Posthuma
2014-06-01 13:49:07 +02:00
committed by sin
parent 2dbb694932
commit daad071b31
2 changed files with 4 additions and 2 deletions

View File

@@ -173,4 +173,5 @@ uudecode(FILE *fp, FILE *outfp)
afgets(&bufb, &n, fp);
if (strnlen(bufb, 3) < 3 || strncmp(bufb, "end", 3) != 0 || bufb[3] != '\n')
eprintf("invalid uudecode footer \"end\" not found\n");
free(bufb);
}