Jump to content
zybx

scv_tr_stream memory leak in scv-2.0.1?

Recommended Posts

It seems scv_tr_stream destructor forgets to delete the pointer '_scv_tr_stream_core_p' which is allocated in its constructor. AddressSanitizer could capture this issue.

Share this post


Link to post
Share on other sites
On 8/7/2019 at 10:33 PM, Stephan Gerth said:

Can you add


delete _scv_tr_stream_core_p;

at the end of the scv_tr_stream destructor in scv_tr.cpp, starting at line 736 and report if this solves the issue?

Sure. Adding the delete statement solves the issue.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...