Skip to content

Commit

Permalink
Refactor return and goto statements (valkey-io#945)
Browse files Browse the repository at this point in the history
Consolidate the cleanup of local variables to a single point within the
method, ensuring proper resource management and p
reventing memory leaks or double-free issues.

Previoslly descused here:
- valkey-io#60 (comment)
- valkey-io#60 (comment)

---------

Signed-off-by: naglera <[email protected]>
Signed-off-by: Amit Nagler <[email protected]>
Co-authored-by: Ping Xie <[email protected]>
  • Loading branch information
naglera and PingXie authored Oct 15, 2024
1 parent 247a8f2 commit b0f23df
Show file tree
Hide file tree
Showing 2 changed files with 246 additions and 177 deletions.
Loading

0 comments on commit b0f23df

Please sign in to comment.