Skip to content

Commit 5e30866

Browse files
Merge pull request #1927 from arcaneframework/dev/gg-fix-memory-leak-for-queue-with-priority
Fix memory leak when using commands with a RunQueue created with a specific priority
2 parents 1d17e40 + 9260c0a commit 5e30866

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arcane/src/arcane/accelerator/core/RunQueueImpl.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
22
//-----------------------------------------------------------------------------
3-
// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
3+
// Copyright 2000-2025 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
44
// See the top-level COPYRIGHT file for details.
55
// SPDX-License-Identifier: Apache-2.0
66
//-----------------------------------------------------------------------------
77
/*---------------------------------------------------------------------------*/
8-
/* RunQueueImpl.cc (C) 2000-2024 */
8+
/* RunQueueImpl.cc (C) 2000-2025 */
99
/* */
1010
/* Gestion d'une file d'exécution sur accélérateur. */
1111
/*---------------------------------------------------------------------------*/
@@ -144,7 +144,7 @@ _release()
144144
if (_isInPool())
145145
m_runner_impl->_internalPutRunQueueImplInPool(this);
146146
else {
147-
delete this;
147+
RunQueueImpl::_destroy(this);
148148
}
149149
}
150150

0 commit comments

Comments
 (0)