From 808ea78ceaacdf34327c3c7f44de65d7ee0672a2 Mon Sep 17 00:00:00 2001 From: karchnu Date: Fri, 4 Dec 2015 09:06:03 +0100 Subject: [PATCH] useless malloc removed --- c/human.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/c/human.c b/c/human.c index 457ef00..a61ef74 100644 --- a/c/human.c +++ b/c/human.c @@ -160,7 +160,7 @@ get_tok_to_humanize (char *s, struct fields *f) int main (int argc, char *argv[]) { - char *strtmp = malloc(BUFSIZ); + char strtmp[BUFSIZ]; char *delim = NULL; // options struct fields fields; @@ -188,8 +188,6 @@ main (int argc, char *argv[]) printf("\n"); } - free(strtmp); - free(fields.fields); if(argc == 2)