useless malloc removed
parent
907b78afaa
commit
808ea78cea
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue