Fix a minor memory leak in the pwqual loader
authorGreg Hudson <ghudson@mit.edu>
Thu, 23 Jun 2011 19:25:58 +0000 (19:25 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 23 Jun 2011 19:25:58 +0000 (19:25 +0000)
k5_pwqual_free_handles() wasn't freeing the container structure for
each handle.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24986 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/srv/pwqual.c

index 71ffa6644d9f6733c9ebc30cef818346e8d2f700..8c53391ec94c983a10087e4781f82d326599936d 100644 (file)
@@ -106,6 +106,7 @@ k5_pwqual_free_handles(krb5_context context, pwqual_handle *handles)
         handle = *hp;
         if (handle->vt.close != NULL)
             handle->vt.close(context, handle->data);
+        free(handle);
     }
     free(handles);
 }