BUG: memory leak fix in convolve2d.