From c78e2cc0243a9bd6dd9b61455842cde62aa52d81 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 25 Feb 2021 14:47:43 +0100 Subject: [PATCH] test: Fix memory leak in unit test run-gossmap_local This was likely missed because we don't run the tests under valgrind anymore due to time constraints. I do run them on a semi-regular basis, which is why I found this. --- common/test/run-gossmap_local.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/test/run-gossmap_local.c b/common/test/run-gossmap_local.c index 6abcafa1e..062ae90e2 100644 --- a/common/test/run-gossmap_local.c +++ b/common/test/run-gossmap_local.c @@ -436,4 +436,5 @@ int main(int argc, char *argv[]) /* Now we can refresh. */ assert(write(fd, "", 1) == 1); gossmap_refresh(map); + common_shutdown(); }