changeset 4995:01934fc29d43

fix leak
author Alain Mazy <am@osimis.io>
date Tue, 03 May 2022 17:23:56 +0200
parents 2f30aa99c2db
children 0f0ada196993
files OrthancServer/Sources/Search/DatabaseLookup.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/Search/DatabaseLookup.cpp	Tue May 03 15:30:01 2022 +0200
+++ b/OrthancServer/Sources/Search/DatabaseLookup.cpp	Tue May 03 17:23:56 2022 +0200
@@ -362,7 +362,7 @@
 
     for (size_t i = 0; i < constraints_.size(); i++)
     {
-      clone->AddConstraint(*(new DicomTagConstraint(*constraints_[i])));
+      clone->AddConstraintInternal(new DicomTagConstraint(*constraints_[i]));
     }
 
     return clone.release();