Fixed memory leak in producer::send