Texture node was using the preview buffer instead of socket output buffers, which is already free'd at that point.