free the intermediate base64 font buffer master
authorgit <redacted>
Sat, 23 May 2026 19:12:05 +0000 (15:12 -0400)
committergit <redacted>
Sat, 23 May 2026 19:12:05 +0000 (15:12 -0400)
mage.c

diff --git a/mage.c b/mage.c
index 6d12d3368f48d177b3e666dc84b776cbeaee8781..0249c31e0347ca764df5940d1a4b66c6f37001e3 100644 (file)
--- a/mage.c
+++ b/mage.c
@@ -222,6 +222,8 @@ fontpreload(void)
                errx(1, "failed to allocate base64 font");
 
        sprintf(inlineuri, "inline:%s", b64font);
+       free(b64font);
+
        printf("Loaded font from: %s\n", fontpath);
 
        return inlineuri;