fix viewing of bio
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 29 Oct 2011 18:52:50 +0000 (20:52 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 29 Oct 2011 18:52:50 +0000 (20:52 +0200)
webcit/sysmsgs.c

index 5ae61336cd20669f656f65f2c972efac5e9a20f0..693848c375750fd48127fa2fd8beedccf235aaf4 100644 (file)
@@ -33,11 +33,12 @@ void display_edit(char *description, char *check_cmd,
        StrBuf *Line;
 
        serv_puts(check_cmd);
-
+       Line = NewStrBuf();
        StrBuf_ServGetln(Line);
        if (GetServerStatusMsg(Line, NULL, 1, 2) != 2) {
                FreeStrBuf(&Line);
                display_main_menu();
+               FreeStrBuf(&Line);
                return;
        }
        if (with_room_banner) {