Recently Written · git

sacc

Mirror of git://bitreich.org/sacc, the sacc gopher client from bitreich.org.

git clone https://github.com/equwal/sacc

Log | Files | Refs


commit 26bc04284d9becc870a6a036a9a6f9bdfba8ba2a
Quentin Rameau <quinq@fifth.space>
2019-10-28 01:34:11 +0100

Fix memory leak in search items

 sacc.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/sacc.c b/sacc.c
index 61d6fc7..c36e41a 100644
--- a/sacc.c
+++ b/sacc.c
@@ -778,6 +778,7 @@ searchitem(Item *entry, Item *item)
 		clearitem(item);
 	if (!item->dat) {
 		selector = item->selector;
+		free(item->tag);
 		item->selector = item->tag = sel;
 		dig(entry, item);
 		item->selector = selector;