Notes
This function is in beta test. Please help improve it in the issues
here.
$ ./ex3_memory_check rand_double.txt dec ================================================================= ==2061==ERROR: LeakSanitizer: detected memory leaks Direct leak of 49909 byte(s) in 10000 object(s) allocated from: #0 0x56281607537e in malloc (/out/package/ex3_memory_check+0xc837e) (BuildId: 79b1d31d7f5b741a2efd886ec82d380574967821) #1 0x5628160b238d in main (/out/package/ex3_memory_check+0x10538d) (BuildId: 79b1d31d7f5b741a2efd886ec82d380574967821) #2 0x7f9c6935ac86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86) (BuildId: f7307432a8b162377e77a182b6cc2e53d771ec4b) SUMMARY: AddressSanitizer: 49909 byte(s) leaked in 10000 allocation(s).
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
Program exit with non zero value 1!
JOJ Answer
Correct!