summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2014-05-12 07:53:08 -0700
committerPatrick Ohly <patrick.ohly@intel.com>2014-05-12 07:53:08 -0700
commit9b6fa0ce7a5ed10d7628276b26301667b8956357 (patch)
tree51927eb5a740367399026be4f34321a703a551fc
parent82c384ed0d05a6e94444ea525a04deaa605726e4 (diff)
scripting: fix memory leak in SWAP()
The temporary variable was never freed.
-rwxr-xr-xsrc/sysync/scriptcontext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sysync/scriptcontext.cpp b/src/sysync/scriptcontext.cpp
index 4b8c2af..2dba7f5 100755
--- a/src/sysync/scriptcontext.cpp
+++ b/src/sysync/scriptcontext.cpp
@@ -1792,6 +1792,8 @@ public:
(*tempP)=(*p1);
(*p1)=(*p2);
(*p2)=(*tempP);
+
+ delete tempP;
}; // func_Swap