diff OrthancServer/Sources/Search/DatabaseLookup.cpp @ 4995:01934fc29d43

fix leak
author Alain Mazy <am@osimis.io>
date Tue, 03 May 2022 17:23:56 +0200
parents d0c34145320c
children a6fa660ec26e
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();