commit 5af4fbd5f2f552da47af0f8f765050e49b0ae73f
parent 650daab2586766bbe9d26d38c6ff35c5e99f2dae
Author: Sebastian <sebastian@sebsite.pw>
Date: Sun, 22 May 2022 18:59:13 -0400
cmd/hare: free deleted tags in deltags
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/cmd/hare/subcmds.ha b/cmd/hare/subcmds.ha
@@ -56,6 +56,7 @@ fn deltags(tags: []module::tag, in: str) ([]module::tag | void) = {
for (let j = 0z; j < len(in); j += 1) {
if (tags[i].name == in[j].name
&& tags[i].mode == in[j].mode) {
+ free(tags[i].name);
delete(tags[i]);
i -= 1;
};