Skip to content

Commit 50a16e9

Browse files
committed
gateway_rename.scm 1.2.2: add missing call to infolist_free
1 parent 720d593 commit 50a16e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

guile/gateway_rename.scm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
(define *weechat/script-name* "gateway_rename")
3131
(define *weechat/script-author* "zv <[email protected]>")
32-
(define *weechat/script-version* "1.2.1")
32+
(define *weechat/script-version* "1.2.2")
3333
(define *weechat/script-license* "GPL3")
3434
(define *weechat/script-description* "Convert usernames of gateway connections their real names")
3535

@@ -87,7 +87,9 @@ returned during /version"
8787
(cons name network)
8888
(process (weechat:infolist_next il))))))
8989

90-
(process (weechat:infolist_next il)))
90+
(let ((result (process (weechat:infolist_next il))))
91+
(weechat:infolist_free il)
92+
result))
9193

9294
;; This is a table that maps a weechat network 'name' to it's IRC-style hostname
9395
(define *hostname-table* (alist->hash-table '(("freenode" . "freenode"))))

0 commit comments

Comments
 (0)