aboutsummaryrefslogtreecommitdiff
path: root/src/pow_lua.c
diff options
context:
space:
mode:
authorforever2k38 <forever2k38@noreply.codeberg.org>2026-09-07 16:54:12 +0200
committerforever2k38 <forever2k38@noreply.codeberg.org>2026-09-07 16:54:12 +0200
commit0f9f29019e1f42882096f649627be3c6e184f7da (patch)
tree7c3ff4bda76dea65ca05f62d66448f026f946236 /src/pow_lua.c
parent3b4f3014683a439dd7f0d1e663743cf0641a05c1 (diff)
fix: (most) memory leaks
Diffstat (limited to 'src/pow_lua.c')
-rw-r--r--src/pow_lua.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pow_lua.c b/src/pow_lua.c
index cd71c87..7cf14b4 100644
--- a/src/pow_lua.c
+++ b/src/pow_lua.c
@@ -7,8 +7,6 @@
#include "string.h"
int pow_lua_extract(lua_State *L) {
- printf("extract called\n");
-
int r;
ssize_t size;
@@ -93,7 +91,10 @@ int pow_lua_extract(lua_State *L) {
}
snprintf(full, need, "%s/%s", dest, cur);
+
archive_entry_set_pathname(entry, full);
+
+ free(full);
}
r = archive_read_extract(a, entry, 0);