Mercurial > pidgin
changeset 21609:7a159abfa395
Plug a tiny little leak.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 21 Nov 2007 22:31:11 +0000 |
parents | 3f95ed86fb51 |
children | 0e4549c09e64 |
files | libpurple/protocols/irc/cmds.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/irc/cmds.c Wed Nov 21 22:26:49 2007 +0000 +++ b/libpurple/protocols/irc/cmds.c Wed Nov 21 22:31:11 2007 +0000 @@ -294,14 +294,17 @@ ops = g_new0(char *, i * 2 + 1); for (i = 0; nicks[i]; i++) { - if (!*nicks[i]) + if (!*nicks[i]) { + g_free(nicks[i]); continue; + } ops[used++] = mode; ops[used++] = nicks[i]; } irc_do_mode(irc, target, sign, ops); g_free(ops); + g_free(nicks); /* No, not g_strfreev */ return 0; }