aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-01-18 18:08:40 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-01-18 18:08:40 -0500
commitf81117be5164e48b909cb5dff4a7dc870eaa0c87 (patch)
tree1e24822539d13f500be3cc8d5541e5b3be37ab98 /src
parent203ad3672a97d70de18a2b7e7f21eb401789474d (diff)
downloadlite-xl-plugin-manager-f81117be5164e48b909cb5dff4a7dc870eaa0c87.tar.gz
lite-xl-plugin-manager-f81117be5164e48b909cb5dff4a7dc870eaa0c87.zip
Thing was due to the other thing.
Diffstat (limited to 'src')
-rw-r--r--src/lpm.c2
1 files changed, 1 insertions, 1 deletions
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);
}