https://github.com/agauniyal/naive_malloc
An implementation of naive and bare bones malloc
https://github.com/agauniyal/naive_malloc
cpp cpp17 free malloc
Last synced: about 1 year ago
JSON representation
An implementation of naive and bare bones malloc
- Host: GitHub
- URL: https://github.com/agauniyal/naive_malloc
- Owner: agauniyal
- License: mit
- Created: 2018-03-09T16:40:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-10T01:03:37.000Z (about 8 years ago)
- Last Synced: 2025-01-28T10:24:13.548Z (about 1 year ago)
- Topics: cpp, cpp17, free, malloc
- Language: C++
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```
$ clang++ main.cpp -std=c++17 -Wall -Wextra -stdlib=libc++
$ valgrind ./a.out
==24271== Memcheck, a memory error detector
==24271== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==24271== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==24271== Command: ./a.out
==24271==
3: 0x4227018
4: 0x4227048
1: 0x4227018
5: 0x4227080
2: 0x4227018
==24271==
==24271== HEAP SUMMARY:
==24271== in use at exit: 0 bytes in 0 blocks
==24271== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==24271==
==24271== All heap blocks were freed -- no leaks are possible
==24271==
==24271== For counts of detected and suppressed errors, rerun with: -v
==24271== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
```