delete pKitti is missing in nvDecInfer_detection example

main.cpp

int main(int argc, char **argv) {
    ...
    PlaybackModule *pPlayback = NULL;
    KittiLoggerModule *pKitti = NULL;
    if (g_gui) {
         ...
    } else {
        // Kitti logging of results
	PRE_MODULE_LIST preModules_kitti;
	preModules_kitti.push_back(std::make_pair(pConvertor, 1)); // NV12
	preModules_kitti.push_back(std::make_pair(pParser, 0)); // COORDS
	pKitti = new KittiLoggerModule(preModules_kitti,
		g_nChannels,
                g_devID_display,
		g_devID_infer,
		g_labelFile, logger);
	assert(nullptr != pKitti);
	pDeviceWorker->addCustomerTask(pKitti);
    }
    ...
    // free
    pDeviceWorker->destroy();
    ...
    if (nullptr != pPlayback) {
	delete pPlayback;
    }
[b]    if (nullptr != pKitti) {
	delete pKitti;
    }  [/b]  
}

Is it more appropriate if adding the bold code?

Hi,

Yes, it looks like that we miss to destroy the KITTI pointer.
Will update this information with the internal team.

Thanks.

you are welcome.