wrc: Free type to avoid leaks (Coverity).
This commit is contained in:
parent
f0b685d504
commit
fc3b99b90a
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue