plug memory leak detected by coverity scan
This commit is contained in:
@ -63,6 +63,13 @@ DumpExtXYZ::DumpExtXYZ(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
DumpExtXYZ::~DumpExtXYZ()
|
||||
{
|
||||
delete[] properties_string;
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void DumpExtXYZ::update_properties()
|
||||
{
|
||||
// How many per-atom elements we buffer
|
||||
|
||||
@ -26,6 +26,7 @@ namespace LAMMPS_NS {
|
||||
class DumpExtXYZ : public DumpXYZ {
|
||||
public:
|
||||
DumpExtXYZ(class LAMMPS *, int, char **);
|
||||
~DumpExtXYZ() override;
|
||||
|
||||
protected:
|
||||
int with_vel;
|
||||
|
||||
Reference in New Issue
Block a user