free line after parsing link
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 19:27:13 +0000 (21:27 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 19:27:13 +0000 (21:27 +0200)
CollectionReader.cpp

index ac33a7e..10cd9dc 100644 (file)
@@ -53,6 +53,7 @@ ED2KLink* CollectionReader::getNextLink() {
                growingBuffer.cut();
                GlobalSettings::isVerbose() && fprintf(stderr, "[%s:%d] got line: %s\n", __FILE__, __LINE__, line);
                ED2KLink* ed2kLink = ED2KLink::parseED2KLink(line);
+               free(line);
                return ed2kLink;
        } else {
        }