From 76f151b4d8430d523fba8abc34e99b4c92462d62 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 27 Jun 2018 16:40:57 -0700 Subject: [PATCH] Fix issue with prev d83cff63f Corrected the new/delete idiom --- common/commit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/commit.cpp b/common/commit.cpp index c5593d4937..2185760229 100644 --- a/common/commit.cpp +++ b/common/commit.cpp @@ -142,7 +142,7 @@ COMMIT& COMMIT::createModified( EDA_ITEM* aItem, EDA_ITEM* aCopy, int aExtraFlag if( entryIt != m_changedItems.end() ) { - free( aCopy ); + delete aCopy; return *this; // item has been already modified once }