svn commit: r1931091 - subversion/trunk/subversion/libsvn_subr

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <176752751294.2678349.8967372826348870613@svn02-us-east.apache.org>
Author: rinrab
Date: Sun Jan  4 11:51:52 2026
New Revision: 1931091

Log:
bcrypt: Follow-up to r1931082: Don't forget to cleanup context when resetting
to prevent memory leak.

* subversion/libsvn_subr/checksum_bcrypt.c
  (bcrypt_ctx_reset): Call bcrypt_ctx_cleanup().

Modified:
   subversion/trunk/subversion/libsvn_subr/checksum_bcrypt.c

Modified: subversion/trunk/subversion/libsvn_subr/checksum_bcrypt.c
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/checksum_bcrypt.c	Sun Jan  4 11:49:54 2026	(r1931090)
+++ subversion/trunk/subversion/libsvn_subr/checksum_bcrypt.c	Sun Jan  4 11:51:52 2026	(r1931091)
@@ -166,6 +166,7 @@ bcrypt_ctx_final(algorithm_state_t *algo
 static svn_error_t *
 bcrypt_ctx_reset(algorithm_state_t *algorithm, bcrypt_ctx_t *ctx)
 {
+  bcrypt_ctx_cleanup(ctx);
   ctx->handle = NULL;
   return SVN_NO_ERROR;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.