Skip to content

Commit

Permalink
free impl_ in AbstractMetaObjectBase destructor
Browse files Browse the repository at this point in the history
The constructor allocates field impl_ of class_loader::impl::AbstractMetaObjectBase but the destructor and whatever functions it calls do not free it.

Signed-off-by: Chris Ye <chris.ye@intel.com>
  • Loading branch information
yechun1 authored and mikaelarguedas committed Sep 14, 2018
1 parent 80a0398 commit 18d1e4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/meta_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ AbstractMetaObjectBase::~AbstractMetaObjectBase()
"class_loader.impl.AbstractMetaObjectBase: "
"Destroying MetaObject %p (base = %s, derived = %s, library path = %s)",
this, baseClassName().c_str(), className().c_str(), getAssociatedLibraryPath().c_str());
delete impl_;
}

const std::string & AbstractMetaObjectBase::className() const
Expand Down

0 comments on commit 18d1e4a

Please sign in to comment.