experiments on json-c(v0.13) to ensure that no memory leakage is present in the library.
detailed information can be found in
https://sphenoid-chatter-700.notion.site/json-c-0-13-memory-anlysis-16b9a6b388ca440c99ff3df9fbc6d174
- Clone Repository: git clone "https://github.com/BenYoo-ben/json_c_memleak_test.git"
- Check for Valgrind version: valgrind --version (only to check if valgrind is installed in the system.)
- Build using Makefile: make
- Choose program to test: (add .c codes in src/ directory.)
- Run mem_check shell scirpt: ./mem_check.sh $EXECUTABLE
- View Results : (Summary will be displayed & detailed information is stored in $EXECUTABLE_NAME.txt as an output)
- Lib not found: run
- $ export LD_LIBRARY_PATH=./lib/lib