Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

$ ./ex3_memory_check rand_double.txt dec

=================================================================
==1817==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 49909 byte(s) in 10000 object(s) allocated from:
    #0 0x55776e428c8e in malloc (/out/package/ex3_memory_check+0xc7c8e) (BuildId: 9ac5205553742ec6c1257adb591ff534960a9ad4)
    #1 0x55776e465c9d in main (/out/package/ex3_memory_check+0x104c9d) (BuildId: 9ac5205553742ec6c1257adb591ff534960a9ad4)
    #2 0x7ff8dd6b2c86 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!