Fixed double freed buffer.

@jcappaert @marshall 

When the interface transmission fails is responsability of the caller to
free it. The interface should not do it.