pet.cc: set_invocation: plug memory leak
commitd7f6d2227b91df734d18e8622f74608dc9d9c9f0
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Wed, 14 Jun 2017 10:43:28 +0000 (14 12:43 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Wed, 14 Jun 2017 10:43:28 +0000 (14 12:43 +0200)
tree3dff70b1c9fca4f598cb7bf52ee6c837656ac4f0
parentb38a4bd422c3741f28f35ed951786f3ae7fa1812
pet.cc: set_invocation: plug memory leak

Commit fa34565 (pet.cc: update to CompilerInstance::setInvocation taking
shared_ptr, Tue Feb 7 14:39:22 2017 +0100) added support for
CompilerInstance::setInvocation taking a shared_ptr.
However, the new code mistakenly passed a copy of the CompilerInvocation
rather than the CompilerInvocation itself, resulting
in the CompilerInvocation never getting freed.
Pass the CompilerInvocation itself.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
pet.cc