Memory management bug fixed

Supplier of pointer is responsible for its deletion