]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Fixed potential memory leak in host_create_any.
authorTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2011 13:32:51 +0000 (15:32 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2011 16:11:45 +0000 (18:11 +0200)
src/libstrongswan/utils/host.c

index ffeebd05c6e147ffcd69329be5c8cd413a135df3..615d85c954f7e67733d1aa76a96b869cd376548e 100644 (file)
@@ -625,5 +625,6 @@ host_t *host_create_any(int family)
                default:
                        break;
        }
+       free(this);
        return NULL;
 }