Skip Menu |
 

From: ghudson@mit.edu
Subject: git commit

Fix memory leak in db2 policy DB initialization

osa_adb_init_db() maintains a static linked list mapping filenames to
lock structures. Entries are never removed from the list; when their
reference counts hit 0, the lockfile is closed but the filename
remains allocated. However, the filename is allocated each time the
lockfile is re-opened, leaking the old value. Fix this leak by moving
filename initialization to entry creation.

https://github.com/krb5/krb5/commit/f53160634dd5de41c12701ade9e59d4b4dcd645b
Author: Greg Hudson <ghudson@mit.edu>
Commit: f53160634dd5de41c12701ade9e59d4b4dcd645b
Branch: master
src/plugins/kdb/db2/adb_openclose.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
From: tlyu@mit.edu
Subject: git commit

Fix memory leak in db2 policy DB initialization

osa_adb_init_db() maintains a static linked list mapping filenames to
lock structures. Entries are never removed from the list; when their
reference counts hit 0, the lockfile is closed but the filename
remains allocated. However, the filename is allocated each time the
lockfile is re-opened, leaking the old value. Fix this leak by moving
filename initialization to entry creation.

(cherry picked from commit f53160634dd5de41c12701ade9e59d4b4dcd645b)

https://github.com/krb5/krb5/commit/f7d6382a135d76de1857d1db485354cbbb967d16
Author: Greg Hudson <ghudson@mit.edu>
Committer: Tom Yu <tlyu@mit.edu>
Commit: f7d6382a135d76de1857d1db485354cbbb967d16
Branch: krb5-1.14
src/plugins/kdb/db2/adb_openclose.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)