Commit 15968fad authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

wpp: Fixed resource leakages (Coverity).

parent 41db6f85
......@@ -216,12 +216,16 @@ int wpp_parse_temp( const char *input, const char *output_base, char **output_na
if((fd = mkstemps( temp_name, 0 )) == -1)
{
ppy_error("Could not generate a temp name from %s\n", temp_name);
free( temp_name );
return 2;
}
if (!(output = fdopen(fd, "wt")))
{
ppy_error("Could not open fd %s for writing\n", temp_name);
close( fd );
unlink( temp_name );
free( temp_name );
return 2;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment