Skip to content
  • Simon Glass's avatar
    fdtgrep: Separate out checking of two allocations · dd0ee9ea
    Simon Glass authored
    
    
    The current code might succeed on the first allocation and fail on the
    second. Separate the checks to avoid this problem.
    
    Of course, free() will never fail and the chances that (when allocating
    two small areas) one will succeed and one will fail are just as remote.
    But this keeps coverity happy.
    
    Reported-by: Coverity (CID: 131226)
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    dd0ee9ea