Fix memory leak in MQ partial tracking implementation.