• Show log

    Commit

  • Hash : 3e8a17b0
    Author : Patrick Steinhardt
    Date : 2019-09-21T15:18:42

    buffer: fix memory leak if unable to grow buffer
    
    If growing a buffer fails, we set its pointer to the static
    `git_buf__oom` structure. While we correctly free the old pointer if
    `git__malloc` returned an error, we do not free it if there was an
    integer overflow while calculating the new allocation size. Fix this
    issue by freeing the pointer to plug the memory leak.