diff --git a/ADApp/pluginSrc/NDFileHDF5.cpp b/ADApp/pluginSrc/NDFileHDF5.cpp index 4cb73e869..648e96eee 100644 --- a/ADApp/pluginSrc/NDFileHDF5.cpp +++ b/ADApp/pluginSrc/NDFileHDF5.cpp @@ -2765,6 +2765,9 @@ asynStatus NDFileHDF5::createAttributeDataset(NDArray *pArray) if(def_group != NULL){ H5Gclose(groupDefault); } + if (numCapture) { + free(numCapture); + } return asynSuccess; }