main.c: Remove mallocs duplicados

Signed-off-by: Aryane Ast dos Santos <aryaneast@gmail.com>