]> Pileus Git - ~andy/fetchmail/commitdiff
Fix small memory leak on error
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 26 Aug 2011 07:57:08 +0000 (09:57 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Fri, 26 Aug 2011 09:22:23 +0000 (11:22 +0200)
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
socket.c

index 1fab09ed0bbb94513e5ff4bba4574e3b266b834f..2d6e297672cd7ae097160a84188773b0bc5f8f57 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -101,6 +101,7 @@ static char *const *parse_plugin(const char *plugin, const char *host, const cha
        if (!argvec)
        {
                report(stderr, GT_("fetchmail: malloc failed\n"));
+               free(plugin_copy);
                return NULL;
        }
        memset(argvec, 0, s);