From 8a34a9e52afeed37bc9587905d47fe3e64e62c45 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Wed, 18 May 2011 10:45:54 +0200 Subject: [PATCH] memory leak fixed in case od duplicate fields --- configure/RELEASE | 2 +- pvDataApp/factory/FieldCreateFactory.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure/RELEASE b/configure/RELEASE index 37d8c6d..a30496c 100644 --- a/configure/RELEASE +++ b/configure/RELEASE @@ -22,7 +22,7 @@ TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top #SNCSEQ=$(EPICS_BASE)/../modules/soft/seq # EPICS_BASE usually appears last so other apps can override stuff: -EPICS_BASE=/home/install/epics/base +EPICS_BASE=/opt/epics/base #Capfast users may need the following definitions #CAPFAST_TEMPLATES= diff --git a/pvDataApp/factory/FieldCreateFactory.cpp b/pvDataApp/factory/FieldCreateFactory.cpp index a71bb71..dd8c8a1 100644 --- a/pvDataApp/factory/FieldCreateFactory.cpp +++ b/pvDataApp/factory/FieldCreateFactory.cpp @@ -105,6 +105,7 @@ Structure::Structure (String fieldName, if(result==0) { String message("duplicate fieldName "); message += name; + delete[] fields; throw std::invalid_argument(message); } }