summaryrefslogtreecommitdiff
path: root/browse.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-12-26 16:01:55 +0100
committerVincent Douillet <vincent@vdouillet.fr>2024-12-26 16:25:18 +0100
commit22c44d49c74e48914bed89d8526af30ab43e1700 (patch)
tree7eee1cf6a46d1171e7d636da38c90043cb4211f9 /browse.c
parent016992ad866767edd93e2673c1c31dccd6cc2fc7 (diff)
browse: fix memory leak
Diffstat (limited to 'browse.c')
-rw-r--r--browse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/browse.c b/browse.c
index b8a90d5..6cd0fd6 100644
--- a/browse.c
+++ b/browse.c
@@ -234,6 +234,7 @@ file_template_callback(size_t index, void *arg)
break;
}
K_OK(khtml_puts(html, basename), r);
+ free(basename);
break;
case 2:
/* url */