Skip to content
Snippets Groups Projects
  1. May 10, 2023
    • Lucas Magalhães's avatar
      Fix possible memory leak in runScript.c · 640e5721
      Lucas Magalhães authored
      This was reported by cppcheck over require's code:
      require-ess/src/runScript.c:128:12: error: Common realloc mistake: 'line_raw' nulled but not freed upon failure [memleakOnRealloc]
            if ((line_raw = realloc(line_raw, line_raw_size *= 2)) == NULL)
                 ^
      
      Unfortunately realloc can return null, in that case if we use something
      like
      line_raw = realloc(line_raw, size);
      The memory pointed by line_raw is lost.
      640e5721
  2. Nov 03, 2022
  3. Apr 20, 2022
  4. Apr 12, 2022
  5. Feb 09, 2022
  6. Dec 02, 2021
  7. Dec 01, 2021
  8. Jan 13, 2021
  9. Nov 05, 2020
  10. Oct 15, 2020
  11. Sep 18, 2018
  12. Sep 17, 2018
  13. Jul 04, 2018
  14. May 08, 2018
  15. Apr 20, 2018
  16. Apr 19, 2018
  17. Apr 18, 2018
  18. Apr 17, 2018
  19. Jul 07, 2017
  20. Feb 22, 2017
  21. Oct 26, 2016
  22. Sep 08, 2016
  23. Sep 06, 2016
  24. Aug 31, 2016
  25. Aug 18, 2016
  26. Aug 04, 2016
  27. Mar 10, 2016
  28. Mar 04, 2016
  29. Jan 05, 2016
  30. Jan 04, 2016
Loading