]> git.ipfire.org Git - thirdparty/zstd.git/commit
Release resources in error paths via cleanup
authorjinyaoguo <guo846@purdue.edu>
Wed, 4 Jun 2025 22:08:11 +0000 (18:08 -0400)
committerjinyaoguo <guo846@purdue.edu>
Wed, 4 Jun 2025 22:08:11 +0000 (18:08 -0400)
commita81ffe11d439d6336bbe9aca938264773beaf43d
treece155322392f458b42da28af9683f1576b0f1f4d
parentdd4cee9190cce231f56bc4f318e71f6b69270993
Release resources in error paths via cleanup

Replace direct returns in error-handling branches with a unified
cleanup block that frees allocated resources before returning,
improving code quality and robustness.
tests/bigdict.c
tests/largeDictionary.c
tests/regression/method.c