You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is because git's global allocator never gets initialized. A workaround is to add libgit2_sys::init() at the top of main. Should this be necessary, or should the safe git2 binding be calling init in more places?
The text was updated successfully, but these errors were encountered:
I think generally the safe git2 side usually calls init from every function that needs it. The way libgit2 handles allocation was changed recently, so now a significantly larger portion of the API should be calling init.
I wonder if there should be any concern about the performance impact of calling init everywhere.
The following code causes a segfault in patch_generated_with_delta_alloc.
I believe this is because git's global allocator never gets initialized. A workaround is to add
libgit2_sys::init()
at the top of main. Should this be necessary, or should the safe git2 binding be calling init in more places?The text was updated successfully, but these errors were encountered: