Windows: free pointer after last reference
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 17 Oct 2011 13:28:11 +0000 (09:28 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 25 Oct 2011 17:49:15 +0000 (10:49 -0700)
commitd5a6a895e3b004666b0d6aaa9fe4313b0a831dbd
treed00d0dfec78c12bc4cf03bcc25e41f5cfd0fc538
parentada5908ca1ed8cfa7bfc42890ac5edc73769ae4c
Windows: free pointer after last reference

This is a superficial change but is being done for readability.
If given the choice of freeing memory and then testing the pointer
value or vice-versa, test the pointer value first.

Change-Id: I189851c265a257d433df111622837db1d706c054
Reviewed-on: http://gerrit.openafs.org/5626
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp