Latest fix was freeing the buffer while it was still in use. Fixes #3712
Attach a file by drag & drop or click to upload