#How do i fix heap or memory problems?

5 messages · Page 1 of 1 (latest)

errant condor
#
*** Incorrect guard value: 102861
id_query_binsort(9926,0x104214580) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort      ./id_query_binsort 20000records.tsv``` 
This is the error i get in my terminal, I have remembered to free any malloc/calloc i have made
tranquil hatchBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

chilly lotus
#

@errant condor u haven't sent any code. Anything I tell u is purely a guess

#

also yeah its good to free dynamic memory (IF EVERYTHING ELSE IS WORKING), but if you aren't using large amounts of memory and you're just testing for now, then you don't need free as it could further complicate your code if you made mistakes somewhere else. All allocated memory will be released to the parent process on program termination, so you don't need to worry about a floating block of allocated memory for testing purposes.

tranquil hatchBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.