Skip to content

Commit a390a83

Browse files
committed
It claims some use after free
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
1 parent 796d569 commit a390a83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/dali/core/dev_string.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
1+
// Copyright (c) 2019-2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -51,6 +51,7 @@ struct DeviceString {
5151

5252
__device__ void clear() {
5353
if (length_) {
54+
// NOLINTNEXTLINE
5455
free(data_);
5556
data_ = nullptr;
5657
length_ = 0;

0 commit comments

Comments
 (0)