From 7c82faca0f55ce868715e2c7f43a2d8877ab70ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Martins?= <82839172+amartinsmg@users.noreply.github.com> Date: Wed, 11 Feb 2026 00:54:49 -0300 Subject: [PATCH] Fix quicksort temporary index buffer leak --- src/quicksort.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/quicksort.hpp b/src/quicksort.hpp index 89b2e06..58121be 100644 --- a/src/quicksort.hpp +++ b/src/quicksort.hpp @@ -64,6 +64,7 @@ T *quicksort(T *arr, int length) rangeIndexes[j][1] = high; } } + free(rangeIndexes); return result; }