lli: Plug leaks in the remote target external implementation.
[oota-llvm.git] / tools / lli / ChildTarget / Unix / ChildTarget.inc
index cd42f34edd53af214fe48e78971751023c470ffd..cc95810dc8c6bf305b890d070a73e616ffe9451a 100644 (file)
@@ -49,6 +49,10 @@ struct ConnectionData_t {
 
 } // namespace
 
+LLIChildTarget::~LLIChildTarget() {
+  delete static_cast<ConnectionData_t *>(ConnectionData);
+}
+
 // OS-specific methods
 void LLIChildTarget::initializeConnection() {
   // Store the parent ends of the pipes