Fix the bug on 'delete strdup -> free strdup'