summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2017-09-05 11:08:10 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2017-09-05 11:08:10 +0200
commit259d0da774d3aa740aef4bc6d23615e460630818 (patch)
tree8b415ac9d6034fdcc08d4aff0ec5baec1b94004f
parentde5f1c80d180c326d02f431c6c3189f1ca9ae6b3 (diff)
itemfield.cpp: fix new/delete mismatchfor-master/valgrind
Static code analysis during compilation with clang found that an array was freed with a plain delete. Code not used in practice by SyncEvolution. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
-rw-r--r--src/sysync/itemfield.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysync/itemfield.cpp b/src/sysync/itemfield.cpp
index f6ecf93..6f400de 100644
--- a/src/sysync/itemfield.cpp
+++ b/src/sysync/itemfield.cpp
@@ -658,7 +658,7 @@ void TStringField::pullFromProxy(void)
fString="Server error while getting data from proxy object: ";
fString+=e.what();
SYSYNC_ENDCATCH
- delete bufP;
+ delete [] bufP;
// proxy is no longer needed
TBlobProxy::unlink(fBlobProxyP);
}