Skip to content

[logging] fix leak in LOG(FATAL)#626

Merged
tqchen merged 1 commit into
dmlc:masterfrom
okuvshynov:fix_new
Jun 10, 2020
Merged

[logging] fix leak in LOG(FATAL)#626
tqchen merged 1 commit into
dmlc:masterfrom
okuvshynov:fix_new

Conversation

@okuvshynov

Copy link
Copy Markdown
Contributor

As trivialfis pointed out, even though this allocation happens right before
fatal is logged, that might be caught, and process might continue
execution.

Use unique_ptr instead.

As trivialfis pointed out, even though this allocation happens before
fatal is logged, that might be caught, and process might continue
execution.

Use unique_ptr instead.
@okuvshynov

Copy link
Copy Markdown
Contributor Author

reported at #625

@tqchen

tqchen commented Jun 10, 2020

Copy link
Copy Markdown
Member

cc @junrushao1994

@tqchen
tqchen merged commit 25aa415 into dmlc:master Jun 10, 2020
@hcho3 hcho3 mentioned this pull request Jun 11, 2020
@trivialfis

Copy link
Copy Markdown
Member

@okuvshynov Thanks for fixing the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants