Skip to content

Commit

Permalink
Fix ASAN: Destructors of base classes must be virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatia committed Dec 19, 2024
1 parent d391375 commit 0a97612
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tiledb/sm/query/readers/result_tile.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ class ResultTile {
DISABLE_COPY_AND_COPY_ASSIGN(ResultTile);
DISABLE_MOVE_AND_MOVE_ASSIGN(ResultTile);

/** Default destructor. */
/** Destructor needs to be virtual, this is a base class. */
virtual ~ResultTile();

/* ********************************* */
Expand Down Expand Up @@ -931,6 +931,9 @@ class ResultTileWithBitmap : public ResultTile {
DISABLE_COPY_AND_COPY_ASSIGN(ResultTileWithBitmap);
DISABLE_MOVE_AND_MOVE_ASSIGN(ResultTileWithBitmap);

/** Default destructor needs to be virtual, this is a base class. */
virtual ~ResultTileWithBitmap() = default;

public:
/* ********************************* */
/* PUBLIC METHODS */
Expand Down

0 comments on commit 0a97612

Please sign in to comment.