Skip to content

Add virtual dtor for ideep context#10059

Closed
yinghai wants to merge 1 commit intopytorch:masterfrom
yinghai:export-D9080526
Closed

Add virtual dtor for ideep context#10059
yinghai wants to merge 1 commit intopytorch:masterfrom
yinghai:export-D9080526

Conversation

@yinghai
Copy link
Contributor

@yinghai yinghai commented Jul 31, 2018

Summary: Without virtual dtor, it could induce incorrect sized deallocation, messing up the memory. And unfortunately, sized deallocation cannot be detected by ASAN, yet.

Differential Revision: D9080526

Summary: Without virtual dtor, it could induce incorrect sized deallocation, messing up the memory. And unfortunately, sized deallocation cannot be detected by ASAN, yet.

Differential Revision: D9080526

fbshipit-source-id: d15300a155a2ee11a50186bcceee3e6724150bf4
@fmassa fmassa added the caffe2 label Jul 31, 2018
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
Pull Request resolved: pytorch#10059

Without virtual dtor, it could induce incorrect sized deallocation, messing up the memory. And unfortunately, sized deallocation cannot be detected by ASAN, yet.

Reviewed By: jerryzh168

Differential Revision: D9080526

fbshipit-source-id: c136cf653134e75b074326be2bc03627da42446f
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants