diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2014-05-12 07:53:08 -0700 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2014-05-12 07:53:08 -0700 |
commit | 9b6fa0ce7a5ed10d7628276b26301667b8956357 (patch) | |
tree | 51927eb5a740367399026be4f34321a703a551fc | |
parent | 82c384ed0d05a6e94444ea525a04deaa605726e4 (diff) |
scripting: fix memory leak in SWAP()
The temporary variable was never freed.
-rwxr-xr-x | src/sysync/scriptcontext.cpp | 2 |
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 |