Free the memory allocated for the callbackIf called multiple times, does nothing after the first call.