aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2018-04-16 15:57:21 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2018-04-16 15:57:21 -0700
commit2293c636dbb6e6df0a770517869f43f5ba820abe (patch)
treec997843091ad3088519d77ed790b7918c9e1e8e2
parent96c9009d56d48215d455f9b859e6c4841b731077 (diff)
Fix use-after-free.
Change-Id: If1b8b9a9be0697704507a5df77020df37b7ab0ec Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
-rw-r--r--src/VirtualResource.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/VirtualResource.cpp b/src/VirtualResource.cpp
index 77d168a..c84b3fb 100644
--- a/src/VirtualResource.cpp
+++ b/src/VirtualResource.cpp
@@ -74,6 +74,7 @@ VirtualResource::~VirtualResource()
OCUnBindResource(m_handle, handle);
OCDeleteResource(handle);
}
+ OCDeleteResource(m_handle);
}
OCStackResult VirtualResource::Create()