The following commit has been merged in the master branch:
commit 5b5fc11ed5a616e25b330dfaa0802c4dea842918
Author: Cheyenne Wills <[email protected]>
Date:   Thu Jul 1 15:14:55 2021 -0600

    budb: Fix problems found by static analysis
    
    Several static analysis tools have identified various problems:
     - file left open from early exit                 (infer)
     - missing checks to ensure *alloc was successful (infer)
     - possible memory leaks                          (scan-build, cppcheck)
    
    To resolve the above problems:
     - close file before exiting
     - add checks to ensure *alloc was successful before using the memory
     - fix possible memory leaks by freeing memory
    
    This commit is a reorganization of commits developed by Pat Riehecky,
    who ran the static analysis tools and developed the fixes.
    
    Change-Id: I63873549c1cfef7aadffc0b3167ef33e067c7b69
    Reviewed-on: https://gerrit.openafs.org/14678
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Cheyenne Wills <[email protected]>
    Reviewed-by: Michael Meffie <[email protected]>
    Reviewed-by: Marcio Brito Barbosa <[email protected]>
    Reviewed-by: Andrew Deason <[email protected]>

 src/budb/db_hash.c | 4 ++++
 src/budb/procs.c   | 4 +++-
 src/budb/server.c  | 8 ++------
 3 files changed, 9 insertions(+), 7 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to