Skip to content
  1. Oct 09, 2018
  2. Oct 08, 2018
  3. Oct 07, 2018
  4. Oct 06, 2018
  5. Oct 05, 2018
  6. Oct 04, 2018
  7. Oct 03, 2018
    • Daniel Gustafsson's avatar
      memory: ensure to check allocation results · 2873971d
      Daniel Gustafsson authored
      
      
      The result of a memory allocation should always be checked, as we may
      run under memory pressure where even a small allocation can fail. This
      adds checking and error handling to a few cases where the allocation
      wasn't checked for success. In the ftp case, the freeing of the path
      variable is moved ahead of the allocation since there is little point
      in keeping it around across the strdup, and the separation makes for
      more readable code. In nwlib, the lock is aslo freed in the error path.
      
      Also bumps the copyright years on affected files.
      
      Closes #3084
      Reviewed-by: default avatarJay Satiro <raysatiro@yahoo.com>
      Reviewed-by: default avatarDaniel Stenberg <daniel@haxx.se>
      2873971d