useless malloc removed

master
karchnu 2015-12-04 09:06:03 +01:00
parent 907b78afaa
commit 808ea78cea
1 changed files with 1 additions and 3 deletions

View File

@ -160,7 +160,7 @@ get_tok_to_humanize (char *s, struct fields *f)
int int
main (int argc, char *argv[]) main (int argc, char *argv[])
{ {
char *strtmp = malloc(BUFSIZ); char strtmp[BUFSIZ];
char *delim = NULL; // options char *delim = NULL; // options
struct fields fields; struct fields fields;
@ -188,8 +188,6 @@ main (int argc, char *argv[])
printf("\n"); printf("\n");
} }
free(strtmp);
free(fields.fields); free(fields.fields);
if(argc == 2) if(argc == 2)