common/warp: free stamp lut only when its allocated first