From 062b6646fff3fe26f288dbe3d16850ed85d74afd Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 12 May 2022 17:20:01 +0300 Subject: [PATCH] tests/color-shaper-matrix: fix realpath() leak Found with ASan. Signed-off-by: Pekka Paalanen --- tests/color-shaper-matrix-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/color-shaper-matrix-test.c b/tests/color-shaper-matrix-test.c index 3c354874..5e6beb3a 100644 --- a/tests/color-shaper-matrix-test.c +++ b/tests/color-shaper-matrix-test.c @@ -275,6 +275,7 @@ build_output_icc_profile(const struct lcms_pipeline *pipe) assert(saved); cmsCloseProfile(profile); + free(wd); return profile_name; }