aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2025-06-22 20:34:14 +0300
committerMikhail Romanko <me@blankhex.com>2025-06-22 20:34:14 +0300
commit9212dbc7c2fbc00bb6f31f7d0ad6e9e47cbf9e19 (patch)
tree3cd2c038e3d49b03ed3342fd7eaeacf5c229f189
parent7bfbcd0de587b298dd1421e80edf549fbb00dd16 (diff)
downloadbhlib-9212dbc7c2fbc00bb6f31f7d0ad6e9e47cbf9e19.tar.gz
Fix memory leak in BH_Bytes
-rw-r--r--src/Bytes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Bytes.c b/src/Bytes.c
index efa973a..562a38f 100644
--- a/src/Bytes.c
+++ b/src/Bytes.c
@@ -33,8 +33,7 @@ static int bytesInit(BH_Bytes *bytes,
static int bytesDestroy(BH_Bytes *bytes)
{
- BH_UNUSED(bytes);
-
+ free(bytes);
return BH_OK;
}