nolanlab / Rclusterpp

Memory efficient clustering in R for large datasets
Other
20 stars 11 forks source link

Possible memory leak #1

Closed rbruggner closed 8 years ago

rbruggner commented 10 years ago

From Brian Ripley:

"But there is still the allocation problem shown by AddressSanitizer (see Writing R Extensions)

Name: Rclusterpp.hclust

Title: Hierarchical Clustering

Aliases: Rclusterpp.hclust

\ Examples

h <- Rclusterpp.hclust(USArrests, method="ward", distance="euclidean")

==17367== ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x0000033e5560

0 0x7f9f9a7f9aca in operator delete(void_) _asanrtl

1 0x7f9f9d786dee in __gnu_cxx::newallocator::deallocate(int, unsigned long) /usr/local/gcc48x/include/c++/4.8.2/ext/new_allocator.h:110

2 0x47af48 in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:597

which seems to indicate a problem when leaving."

rbruggner commented 8 years ago

I think this got fixed.