Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Change the doc string for `zfree_with_size`

Co-authored-by: ranshid <[email protected]>
  • Loading branch information
poiuj and ranshid authored Jun 11, 2024
1 parent 37ad930 commit 1639a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1639a2b

Please sign in to comment.