From afb6f3b62a663c74c26ae34bec421fb9a1626895 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 10 Jun 2016 17:09:34 +0100 Subject: [PATCH] Fixed memory leak --- src/osgPlugins/osc/osc/OscPrintReceivedElements.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgPlugins/osc/osc/OscPrintReceivedElements.cpp b/src/osgPlugins/osc/osc/OscPrintReceivedElements.cpp index 1ab1c4bd2..cc1ae3ad1 100644 --- a/src/osgPlugins/osc/osc/OscPrintReceivedElements.cpp +++ b/src/osgPlugins/osc/osc/OscPrintReceivedElements.cpp @@ -123,6 +123,8 @@ std::ostream& operator<<( std::ostream & os, s[ len - 1 ] = '\0'; os << " " << s; + + delete s; } break;