From 403ac5aeaaa4e7529ccaad0b77715272aa04afd3 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 17 Aug 2021 21:29:13 +1000 Subject: Memory leak-- --- src/sledjchisl/sledjchisl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index eb80f1c..2428bab 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -1689,6 +1689,7 @@ void findWindow(simData *simd, char *sim, char *type, int count, int window, int snprintf(toybuf, sizeof(toybuf), "%s/IDs_%d.lua", scTemp, window); qtreetbl_t *IDs = Lua2tree(toybuf, "IDs"); snprintf(toybuf, sizeof(toybuf), "%d %d", window, pane); + free(simd->paneID); simd->paneID = xmprintf("%s", qLuaGet(IDs, toybuf)->v.s); freeLuaTree(IDs); if (strcmp(backupIARsim, sim) == 0) -- cgit v1.1