A BUG OF Tensorrt 4.0

Hello,
Maybe there is a bug in tensorrt 4.0 's c++ API,

just to write like this:

IHostMemory *trtModelStream{nullptr};

trtModelStream->destroy();

there maybe a core dump error,

the function destroy() should check whether the trtModelStream pointer is null,

thanks for you time.

Hi,

Thanks for your feedback.
We will update this to our internal team.

Hi,

Thanks for your comment.
We will add an error handling for null pointer in our next release.

Thanks.