wrc: Free type to avoid leaks (Coverity).

This commit is contained in:
Marcus Meissner 2009-01-31 22:14:57 +01:00 committed by Alexandre Julliard
parent f0b685d504
commit fc3b99b90a
1 changed files with 3 additions and 0 deletions

View File

@ -292,7 +292,10 @@ static resource_t *read_res32(FILE *fp)
usrres = new_user(type, NULL, new_int(memopt)); usrres = new_user(type, NULL, new_int(memopt));
} }
else else
{
free (type);
usrres = NULL; usrres = NULL;
}
rsc = new_resource(res_type, rsc = new_resource(res_type,
usrres, usrres,
memopt, memopt,