mcabber/src/commands.c
changeset 1126 771eb6aa2d41
parent 1100 2bef748356de
child 1130 b2040a7fb7fc
--- 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)