[med-svn] [conquest-dicom-server] 05/14: Patch mismatched new/delete in flpdu.cxx

Pablo Lorenzzoni spectra at moszumanska.debian.org
Tue Mar 11 17:55:13 UTC 2014


This is an automated email from the git hooks/post-receive script.

spectra pushed a commit to branch master
in repository conquest-dicom-server.

commit 35bde223bc3d7a9486d52071a29c48fe9a0d9c1f
Author: Pablo Lorenzzoni <spectra at debian.org>
Date:   Wed Feb 12 15:49:05 2014 -0200

    Patch mismatched new/delete in flpdu.cxx
---
 ...-Patch-mismatches-new-delete-in-flpdu.cxx.patch | 97 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 98 insertions(+)

diff --git a/debian/patches/0014-Patch-mismatches-new-delete-in-flpdu.cxx.patch b/debian/patches/0014-Patch-mismatches-new-delete-in-flpdu.cxx.patch
new file mode 100644
index 0000000..06dceeb
--- /dev/null
+++ b/debian/patches/0014-Patch-mismatches-new-delete-in-flpdu.cxx.patch
@@ -0,0 +1,97 @@
+From: Pablo Lorenzzoni <spectra at debian.org>
+Date: Wed, 12 Feb 2014 15:48:27 -0200
+Subject: Patch mismatches new/delete in flpdu.cxx
+
+---
+ flpdu.cxx |   40 ++++++++++++++++++++--------------------
+ 1 file changed, 20 insertions(+), 20 deletions(-)
+
+diff --git a/flpdu.cxx b/flpdu.cxx
+index 0af7b5e..7d9dda7 100644
+--- a/flpdu.cxx
++++ b/flpdu.cxx
+@@ -456,12 +456,12 @@ CheckedPDU_Service	::	ReleaseMemory ()
+ 		Index = 0;
+ 		while ( Index < SOPUIDListCount )
+ 			{
+-			delete SOPUIDList [ Index ] ;
+-			delete SOPUIDListNames [ Index ] ;
++			delete [] SOPUIDList [ Index ] ;
++			delete [] SOPUIDListNames [ Index ] ;
+ 			++Index;
+ 			}
+-		delete SOPUIDList;
+-		delete SOPUIDListNames;
++		delete [] SOPUIDList;
++		delete [] SOPUIDListNames;
+ 		SOPUIDList = NULL;
+ 		SOPUIDListNames = NULL;
+ 		SOPUIDListCount = 0;
+@@ -472,12 +472,12 @@ CheckedPDU_Service	::	ReleaseMemory ()
+ 		Index = 0;
+ 		while ( Index < TransferUIDListCount )
+ 			{
+-			delete TransferUIDList [ Index ] ;
+-			delete TransferUIDListNames [ Index ] ;
++			delete [] TransferUIDList [ Index ] ;
++			delete [] TransferUIDListNames [ Index ] ;
+ 			++Index;
+ 			}
+-		delete TransferUIDList;
+-		delete TransferUIDListNames;
++		delete [] TransferUIDList;
++		delete [] TransferUIDListNames;
+ 		TransferUIDList = NULL;
+ 		TransferUIDListNames = NULL;
+ 		TransferUIDListCount = 0;
+@@ -488,12 +488,12 @@ CheckedPDU_Service	::	ReleaseMemory ()
+ 		Index = 0;
+ 		while ( Index < ApplicationUIDListCount )
+ 			{
+-			delete ApplicationUIDList [ Index ] ;
+-			delete ApplicationUIDListNames [ Index ] ;
++			delete [] ApplicationUIDList [ Index ] ;
++			delete [] ApplicationUIDListNames [ Index ] ;
+ 			++Index;
+ 			}
+-		delete ApplicationUIDList;
+-		delete ApplicationUIDListNames;
++		delete [] ApplicationUIDList;
++		delete [] ApplicationUIDListNames;
+ 		ApplicationUIDList = NULL;
+ 		ApplicationUIDListNames = NULL;
+ 		ApplicationUIDListCount = 0;
+@@ -503,12 +503,12 @@ CheckedPDU_Service	::	ReleaseMemory ()
+ 		Index = 0;
+ 		while ( Index < RemoteAEListCount )
+ 			{
+-			delete RemoteAEList [ Index ] ;
+-			delete RemoteAEListNames [ Index ] ;
++			delete [] RemoteAEList [ Index ] ;
++			delete [] RemoteAEListNames [ Index ] ;
+ 			++Index;
+ 			}
+-		delete RemoteAEList;
+-		delete RemoteAEListNames;
++		delete [] RemoteAEList;
++		delete [] RemoteAEListNames;
+ 		RemoteAEList = NULL;
+ 		RemoteAEListNames = NULL;
+ 		RemoteAEListCount = 0;
+@@ -518,12 +518,12 @@ CheckedPDU_Service	::	ReleaseMemory ()
+ 		Index = 0;
+ 		while ( Index < LocalAEListCount )
+ 			{
+-			delete LocalAEList [ Index ] ;
+-			delete LocalAEListNames [ Index ] ;
++			delete [] LocalAEList [ Index ] ;
++			delete [] LocalAEListNames [ Index ] ;
+ 			++Index;
+ 			}
+-		delete LocalAEList;
+-		delete LocalAEListNames;
++		delete [] LocalAEList;
++		delete [] LocalAEListNames;
+ 		LocalAEList = NULL;
+ 		LocalAEListNames = NULL;
+ 		LocalAEListCount = 0;
diff --git a/debian/patches/series b/debian/patches/series
index 628672d..2ed03d8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@
 0011-Fix-cppcheck-bug-4.patch
 0012-Fix-cppcheck-bug-5.5.patch
 0013-Fix-cppcheck-bugs-8-e-9.patch
+0014-Patch-mismatches-new-delete-in-flpdu.cxx.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/conquest-dicom-server.git



More information about the debian-med-commit mailing list