Author: Unknown
Subject: Memory Leak on abort (control C)
Date: Friday, 17 Apr 2020, 00:57:09
Is there a way to free memory that you malloc when you insert triples into the hash table when you abort the program during an infinite loop? In the staff solution, for example, when I run ./Nine20 5 5 1000000 123456789abcdefghijklmno- abdj-87lm9nce23o41f56ghik and quit the program with Control C, there is no memory lost. Everything is still reachable. Any suggestions on how to deal with memory loss in this case?PREV INDEX NEXT