Deallocated HDFattr memory

This commit is contained in:
jupfi 2024-02-09 08:27:29 +01:00
parent f9d86bd4de
commit 274c2cb5b0

View file

@ -1903,6 +1903,11 @@ DC_Q << endl;
// Close device // Close device
LMS_Close(device); LMS_Close(device);
// Deallocate HDFattr
for (int ii = 0; ii < no_of_attr; ii++) {
free(HDFattr[ii].Value);
}
return 0; return 0;
} }