Windows: do not leak resource in AFSQueryDirectory
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 4 Nov 2011 12:40:03 +0000 (08:40 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 4 Nov 2011 22:38:53 +0000 (15:38 -0700)
commit3acd9b854e05748578f8291200fad8c6650e9b14
tree4d50cd4af2e46f52582f3fe88be8bbcef7ea24b8
parent8d0910be59975ef0e19c5d89fef4419700224bde
Windows: do not leak resource in AFSQueryDirectory

Track whether or not the pFcb->NPFcb->Resource is held so
it can be released in all error paths.

Change-Id: I8c8bfb912329e8c11ac7857086412d85aa64fea6
Reviewed-on: http://gerrit.openafs.org/5804
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsrdr/kernel/lib/AFSDirControl.cpp