libsixel icon indicating copy to clipboard operation
libsixel copied to clipboard

Memory leak in sixel_encoder_encode_bytes

Open muetzenmann opened this issue 3 years ago • 2 comments

By using valgrind, I found a memory leak in sixel_encoder_encode_bytes.

frame is allocated via sixel_frame_new, but never free'd.

To fix it, you can change line 1798 to

sixel_frame_t *frame = NULL;

and add

sixel_frame_unref(frame);

before the return statement.

muetzenmann avatar Apr 05 '22 15:04 muetzenmann