ML: don't free the roomname yet - we still need it.
authorWilfried Goesgens <dothebart@citadel.org>
Wed, 12 Jun 2013 19:51:38 +0000 (21:51 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Wed, 12 Jun 2013 19:51:38 +0000 (21:51 +0200)
citadel/modules/network/serv_netspool.c

index cbff2d41223804780b51b4b32426377a6c3aaf16..900292e95e7279a58f81abf48041f08b8afbe230 100644 (file)
@@ -289,7 +289,6 @@ void CalcListID(SpoolControl *sc)
                StrBufAppendBuf(sc->ListID, RoomName, 0);
                StrBufAppendBufPlain(sc->ListID, HKEY("."), 0);
                StrBufAppendBufPlain(sc->ListID, config.c_fqdn, -1, 0);
-               FreeStrBuf(&RoomName);
                /*
                 * this used to be:
                 * roomname <Room-Number.list-id.fqdn>
@@ -312,6 +311,7 @@ void CalcListID(SpoolControl *sc)
                StrBufLowerCase(sc->Users[roommailalias]);
        }
 
+       FreeStrBuf(&RoomName);
 }