Fix memory leak when doing floodprotected system messages
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 1 Dec 2012 15:43:28 +0000 (16:43 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 1 Dec 2012 15:43:28 +0000 (16:43 +0100)
citadel/msgbase.c

index 568cefb2e06f6c57175510351cbf1b05acf5b049..f93788e7855d592dc49e13dff2e8335677b282f8 100644 (file)
@@ -3597,6 +3597,8 @@ void flood_protect_quickie_message(const char *from,
        cdb_store(CDB_USETABLE,
                  SKEY(guid),
                  &ut, sizeof(struct UseTable) );
+       
+       FreeStrBuf(&guid);
 
        if (cdbut != NULL) return;
        /* no, this message isn't sent recently; go ahead. */