diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-01-18 18:08:40 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-01-18 18:08:40 -0500 |
commit | f81117be5164e48b909cb5dff4a7dc870eaa0c87 (patch) | |
tree | 1e24822539d13f500be3cc8d5541e5b3be37ab98 /src | |
parent | 203ad3672a97d70de18a2b7e7f21eb401789474d (diff) | |
download | lite-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |