From f81117be5164e48b909cb5dff4a7dc870eaa0c87 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Thu, 18 Jan 2024 18:08:40 -0500 Subject: Thing was due to the other thing. --- src/lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lpm.c b/src/lpm.c index b287ec4..3a0ab3e 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -461,8 +461,8 @@ static int lpm_fetch(lua_State* L) { if (!error) { git_buf branch_name = {0}; if (!git_remote_default_branch(&branch_name, remote)) { - // We specifically do not dispose of the branch buffer here; it causes a segfault if we do. lua_pushlstring(L, branch_name.ptr, branch_name.size); + git_buf_dispose(&branch_name); } else { lua_pushnil(L); } -- cgit v1.2.3