diff options
| author | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2025-11-02 15:51:24 -0500 |
|---|---|---|
| committer | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2025-11-02 15:51:24 -0500 |
| commit | 3d2b1b82bd1bf016d6fc5091bcec5c61bacabd70 (patch) | |
| tree | 5df8feb9c8c974be0d5370e28f641286a8a17b05 /src/alloc.c | |
| parent | a66d9582a16eb3c15bf727db84431660ae20b2f2 (diff) | |
| download | liballoc-3d2b1b82bd1bf016d6fc5091bcec5c61bacabd70.tar.gz | |
Added an interface to access free list and updated tests to use it
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 2f4aa03..dd1c8aa 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -83,3 +83,7 @@ void release(void *ptr) { fl_add_node(&free_list, ptr); fl_coalesce_nodes(free_list); } + +free_nd *free_list_head() { + return free_list; +} |