diff options
author | Danny Holman <dholman@gymli.org> | 2024-10-07 13:35:00 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-10-07 13:35:00 -0500 |
commit | f9a9720d3d34cf213a5393cdfdac989bed913e1a (patch) | |
tree | 078269fc35b698978bef96fba6cf8172f2eeb6dc /include/rune/core/logging.h | |
parent | fd6f75da9477ea2ae5b3eb1cb0eb64cc19b67037 (diff) |
core: alloc: fix a bug in realloc
Fix a bug in realloc that wouldn't copy the data from the original
pointer. The new implementation now copies the data and marks the old
block as free, as well as returning a new block if the ptr argument is
NULL.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include/rune/core/logging.h')
0 files changed, 0 insertions, 0 deletions