mirror of https://github.com/FreeRDP/FreeRDP
Fix memory leak in lodepng_zlib_compress
This commit is contained in:
parent
2db8c7e107
commit
d2ab27626a
|
@ -2208,6 +2208,12 @@ unsigned lodepng_zlib_compress(unsigned char** out, size_t* outsize, const unsig
|
|||
*out = outv.data;
|
||||
*outsize = outv.size;
|
||||
}
|
||||
else
|
||||
{
|
||||
*out = NULL;
|
||||
*outsize = 0;
|
||||
ucvector_cleanup(&outv);
|
||||
}
|
||||
|
||||
return error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue