Mercurial > hg
changeset 1126:771eb6aa2d41
Fix another memory leak, spotted by valgrind
author | misc@mandriva.org |
---|---|
date | Sat, 13 Jan 2007 14:38:07 +0100 |
parents | 2ac9bec53c37 |
children | fddf2fef7b83 |
files | mcabber/src/commands.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/commands.c Sat Jan 13 14:36:05 2007 +0100 +++ b/mcabber/src/commands.c Sat Jan 13 14:38:07 2007 +0100 @@ -367,9 +367,12 @@ // Command "quit"? if ((scr_get_multimode() != 2) - && (!strncasecmp(xpline, mkcmdstr("quit"), strlen(mkcmdstr("quit"))))) - if (!xpline[5] || xpline[5] == ' ') + && (!strncasecmp(xpline, mkcmdstr("quit"), strlen(mkcmdstr("quit"))))) { + if (!xpline[5] || xpline[5] == ' ') { + g_free(xpline); return 255; + } + } // If verbatim multi-line mode, we check if another /msay command is typed if ((scr_get_multimode() == 2)