* two tiny leaks
authorWilfried Göesgens <willi@citadel.org>
Fri, 22 Aug 2008 17:07:57 +0000 (17:07 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 22 Aug 2008 17:07:57 +0000 (17:07 +0000)
webcit/messages.c
webcit/paging.c

index 0c11d6b1825dd3d4c203fe49a161536a0b3c4510..b96a280fae575e78c753ff2b0b34673b4899dea7 100644 (file)
@@ -3638,6 +3638,7 @@ void display_enter(void)
                                } 
                                sig ++;
                        }
+                       FreeStrBuf(&Sig);
                }
        }
 
index ed05e2b7c1b29bb7d4b48d620da5b3c19b0dc064..e2dd90bb45279764739ce3385678dda2e6d5f4ad 100644 (file)
@@ -141,6 +141,7 @@ void do_chat(void)
  */
 void page_popup(void)
 {
+       int len;
        char buf[SIZ];
 
        /** JavaScript function to alert the user that popups are probably blocked */
@@ -157,8 +158,8 @@ void page_popup(void)
 
        /** First, do the check as part of our page load. */
        serv_puts("NOOP");
-       serv_getln(buf, sizeof buf);
-       if (buf[3] == '*') {
+       len = serv_getln(buf, sizeof buf);
+       if ((len >= 3) && (buf[3] == '*')) {
                if ((time(NULL) - WC->last_pager_check) > 60) {
                        wprintf("<script type=\"text/javascript\">"
                                " var oWin = window.open('static/instant_messenger.html', "