• Show log

    Commit

  • Hash : a53d2e39
    Author : Patrick Steinhardt
    Date : 2016-02-09T09:58:56

    pack: do not free passed in poiter on error
    
    The function `git_packfile_stream_open` tries to free the passed
    in stream when an error occurs. The only call site is
    `git_indexer_append`, though, which passes in the address of a
    stream struct which has not been allocated on the heap.
    
    Fix the issue by simply removing the call to free. In case of an
    error we did not allocate any memory yet and otherwise it should
    be the caller's responsibility to manage it's object's lifetime.