[med-svn] [conquest-dicom-server] 08/14: Fix cppcheck bug 3 - Reviewed by Marcel

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 9a1ea75f5d427a91a464da2e862256a2951783e1
Author: Pablo Lorenzzoni <spectra at debian.org>
Date:   Wed Mar 5 17:43:40 2014 -0300

    Fix cppcheck bug 3 - Reviewed by Marcel
---
 ...013-Fix-cppcheck-bug-3-Reviewed-by-Marcel.patch | 29 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/0013-Fix-cppcheck-bug-3-Reviewed-by-Marcel.patch b/debian/patches/0013-Fix-cppcheck-bug-3-Reviewed-by-Marcel.patch
new file mode 100644
index 0000000..dbd6f48
--- /dev/null
+++ b/debian/patches/0013-Fix-cppcheck-bug-3-Reviewed-by-Marcel.patch
@@ -0,0 +1,29 @@
+From: Pablo Lorenzzoni <spectra at debian.org>
+Date: Wed, 5 Mar 2014 17:42:32 -0300
+Subject: Fix cppcheck bug 3 - Reviewed by Marcel
+
+---
+ device.cpp |    6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/device.cpp b/device.cpp
+index d128c04..0d4458f 100644
+--- a/device.cpp
++++ b/device.cpp
+@@ -2895,10 +2895,16 @@ MakeListOfPatientsOnDevice(char *Device, char **PatientIDList)
+ 		if (PatList==NULL) return -1;
+ 
+ 		if (!DB.QueryDistinct(PatientTableName, "PatientID", "", "DICOMPatients.AccessTime"))
++			{
++			free(PatList);
+ 			return -1;
++			}
+ 
+ 		if(!DB.BindField (1, SQL_C_CHAR, PatientID, 68, &sdword))
++			{
++			free(PatList);
+ 			return -1;
++			}
+ 
+ 		NPat = 0;
+ 		while(DB.NextRecord())
diff --git a/debian/patches/series b/debian/patches/series
index 8cb5550..6c0ab68 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@
 0010-Fix-cppcheck-bug-5.5.patch
 0011-Patch-mismatches-new-delete-in-flpdu.cxx.patch
 0012-Fix-cppcheck-bugs-8-and-9-Reviewed-by-Marcel.patch
+0013-Fix-cppcheck-bug-3-Reviewed-by-Marcel.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