From 1639a2b78873ea54a38e0cb08622290ab9d37cd6 Mon Sep 17 00:00:00 2001 From: poiuj <1099644+poiuj@users.noreply.github.com> Date: Tue, 11 Jun 2024 11:45:58 +0300 Subject: [PATCH] Apply suggestions from code review Change the doc string for `zfree_with_size` Co-authored-by: ranshid <88133677+ranshid@users.noreply.github.com> --- src/zmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zmalloc.c b/src/zmalloc.c index c7e859a254..819b942c57 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -362,9 +362,9 @@ size_t zmalloc_usable_size(void *ptr) { #endif /* Frees the memory buffer pointed by ptr and updates statistics. - * ptr must already point to the start of the buffer. On systems where we store + * ptr must point to the start of the buffer. On systems where we store * an additional header, the caller must do the necessary adjustments. - * ptr must not be NULL. With jemalloc this function uses the fast track by + * ptr must not be NULL. When using jemalloc this function uses the fast track by * specifying the buffer size */ void zfree_with_size(void *ptr, size_t size) { update_zmalloc_stat_free(size);