Skip to content

Commit

Permalink
plug memory leak
Browse files Browse the repository at this point in the history
==21315== 4,000 bytes in 1,000 blocks are definitely lost in loss record 6,503 of 6,903
==21315==    at 0x4C31B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==21315==    by 0x510CE7E: NDFileHDF5::createAttributeDataset(NDArray*) (NDFileHDF5.cpp:2652)
==21315==    by 0x510E7C9: NDFileHDF5::openFile(char const*, int, NDArray*) (NDFileHDF5.cpp:282)
==21315==    by 0x50FDEF5: NDPluginFile::openFileBase(int, NDArray*) (NDPluginFile.cpp:73)
..
  • Loading branch information
Hinko Kocevar committed Mar 28, 2019
1 parent bc5a8ee commit 5867b73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ADApp/pluginSrc/NDFileHDF5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2765,6 +2765,9 @@ asynStatus NDFileHDF5::createAttributeDataset(NDArray *pArray)
if(def_group != NULL){
H5Gclose(groupDefault);
}
if (numCapture) {
free(numCapture);
}

return asynSuccess;
}
Expand Down

0 comments on commit 5867b73

Please sign in to comment.