diff --git a/src/limedriver.cpp b/src/limedriver.cpp index 187bfb7..2bbfab8 100644 --- a/src/limedriver.cpp +++ b/src/limedriver.cpp @@ -1903,6 +1903,11 @@ DC_Q << endl; // Close device LMS_Close(device); + // Deallocate HDFattr + for (int ii = 0; ii < no_of_attr; ii++) { + free(HDFattr[ii].Value); + } + return 0; }