Fix memory leak in init_creds_pw.c