From c84469b0dd892bc47fbd638808e07392329fb69c Mon Sep 17 00:00:00 2001 From: Daniel Pointon Date: Wed, 17 Apr 2024 15:21:20 +0100 Subject: [PATCH] Fix memory leak --- src/cliques.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cliques.c b/src/cliques.c index f75a647ac..2275ccd93 100644 --- a/src/cliques.c +++ b/src/cliques.c @@ -681,6 +681,7 @@ Obj FuncDigraphsCliquesFinder(Obj self, Obj args) { } for (UInt i = 1; i <= exclude_size; ++i) { if (lookup[INT_INTOBJ(ELM_LIST(exclude_obj, i)) - 1]) { + free(lookup); return user_param_obj; } }