[med-svn] [conquest-dicom-server] 02/04: Patch Mismatching new[]/delete[] in buffer.cxx

Pablo Lorenzzoni spectra at moszumanska.debian.org
Wed Feb 5 17:33:25 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 52f112523081208d9fa3c0eeda6b338fa8074230
Author: Pablo Lorenzzoni <spectra at debian.org>
Date:   Wed Feb 5 10:59:12 2014 +0000

    Patch Mismatching new[]/delete[] in buffer.cxx
---
 debian/patches/0009-Fix-cppcheck-bug-1.patch | 22 ++++++++++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/0009-Fix-cppcheck-bug-1.patch b/debian/patches/0009-Fix-cppcheck-bug-1.patch
new file mode 100644
index 0000000..124d6ba
--- /dev/null
+++ b/debian/patches/0009-Fix-cppcheck-bug-1.patch
@@ -0,0 +1,22 @@
+From: Pablo Lorenzzoni <spectra at debian.org>
+Date: Wed, 5 Feb 2014 10:57:52 +0000
+Subject: Fix cppcheck bug #1
+
+[buffer.cxx:440]: (error) Mismatching allocation and deallocation: Data
+---
+ buffer.cxx |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/buffer.cxx b/buffer.cxx
+index 08130e0..ce69aa2 100644
+--- a/buffer.cxx
++++ b/buffer.cxx
+@@ -437,7 +437,7 @@ BOOL	Buffer	::	Kill(UINT	Bytes)
+         if (!Data) DicomError(DCM_ERROR_MEMORY, "Bufferspace: out of memory allocating %d bytes\n", Bytes+1);
+ 
+ 	Ret = Read(Data, Bytes);
+-	delete Data;
++	delete [] Data;
+ 	return ( Ret );
+ 	}
+ 	
diff --git a/debian/patches/series b/debian/patches/series
index b39f937..dc78eab 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@
 0006-Add-DebianBaseDir-at-dgate.cpp.patch
 0007-Change-port-for-CONQUESTSRV1-in-acrnema.map.patch
 0008-Fix-cppcheck-bug-6.patch
+0009-Fix-cppcheck-bug-1.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