Skip to content

Commit

Permalink
Fix data_cdr memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Eugenio Collado <[email protected]>
  • Loading branch information
EugenioCollado committed Dec 30, 2024
1 parent 7b12ed7 commit 9a05ffd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ddsrecorder_participants/src/cpp/recorder/sql/SqlWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ void SqlWriter::write_nts_(

// Reset the statement for the next execution
sqlite3_reset(statement);

// Free the data_cdr memory
delete[] data_cdr;
}

// Commit transaction
Expand Down

0 comments on commit 9a05ffd

Please sign in to comment.