summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2007-08-24 14:20:31 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2007-08-24 14:20:31 +0000
commitd8daba5d488be9b24fdbaca2272553818735ce99 (patch)
treed1a4011aa44decc2c97139c78eaf2a18c756b79e /src
parentb960e697d8344407cae031bc74cf64b0e0adc467 (diff)
downloadkrb5-d8daba5d488be9b24fdbaca2272553818735ce99.tar.gz
krb5-d8daba5d488be9b24fdbaca2272553818735ce99.tar.xz
krb5-d8daba5d488be9b24fdbaca2272553818735ce99.zip
NIM: resource leak in khui_action_trigger()
The khui_action_trigger() function in the Network Identity Manager API creates a copy of the current user interface context (which contains information about the credentials and identities that are currently selected) before triggering the requested action. Then it will use the copy to restore the user interface context to its previous state. A coding error results in the copy of the context to never be released. As a result there is a resource leak. The attached patch fixes the leak by releasing the context once it is no longer needed. ticket: new component: windows git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19852 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/windows/identity/uilib/action.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/windows/identity/uilib/action.c b/src/windows/identity/uilib/action.c
index be3860c81a..3476428ac2 100644
--- a/src/windows/identity/uilib/action.c
+++ b/src/windows/identity/uilib/action.c
@@ -497,6 +497,7 @@ khui_action_trigger(khm_int32 action, khui_action_context * ctx) {
if (ctx) {
khui_context_set_indirect(&save);
+ khui_context_release(&save);
}
}