Skip to content

fixed double free in _cairo_ps_surface_emit_base85_string

Ayman El Didi requested to merge aeldidi/cairo:issue558 into master

When taking the CAIRO_PS_COMPRESS_DEFLATE branch of the switch statement in _cairo_ps_surface_emit_base85_string, memory is freed a second time when closing the deflate_stream fails after performing a write.

The status is now simply returned instead of attempting to free it again.

This fixes #558 (closed).

Merge request reports