zlib: reduce code duplication · nodejs/node@816e1be · GitHub
Skip to content

Commit 816e1be

Browse files
jhofsteeaduh95
authored andcommitted
zlib: reduce code duplication
The offset in the allocated memory was calculated in alloc and free, this makes it a single constant so it only needs to be defined once. PR-URL: #57810 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 53cb9f3 commit 816e1be

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/node_zlib.cc

Lines changed: 6 additions & 5 deletions

0 commit comments

Comments
 (0)