[krbdev.mit.edu #9273] git commit

Greg Hudson via RT rt at krbdev.mit.edu
Tue Nov 3 19:18:02 EST 2026


<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9273 >


Fix memory leak in mpool_get() error paths

If mpool_get() fails after obtaining a bucket from mpool_bkt() (offset
overflow, lseek failure, or partial read), the bucket is not on any
queue and is leaked.  Free it and decrement curcache on these paths.

[ghudson at mit.edu: added cautionary comment to err label]

(cherry picked from commit 8f4c88a8b1bdb007f3d84f1280e7edf89a575ca4)

https://github.com/krb5/krb5/commit/da8dc32eb382b7f3a5b870ee0ecbb769e33019ed
Author: Tigran Sogomonian <tsogomonian at astralinux.ru>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: da8dc32eb382b7f3a5b870ee0ecbb769e33019ed
Branch: krb5-1.22
 src/plugins/kdb/db2/libdb2/mpool/mpool.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)



More information about the krb5-bugs mailing list