]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Avoid calling globfree twice on failure.
authorTobias Brunner <tobias@strongswan.org>
Thu, 11 Nov 2010 11:52:48 +0000 (12:52 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 3 Dec 2010 16:38:36 +0000 (17:38 +0100)
src/libcharon/plugins/stroke/stroke_cred.c

index 91e71f1f458c9062e1daf8a94c7ba2e077c42b6b..f4616a2502c53a9e46f1a2893ee9a20460860a70 100644 (file)
@@ -1234,7 +1234,6 @@ static void load_secrets(private_stroke_cred_t *this, char *file, int level,
                        if (glob(pattern, GLOB_ERR, NULL, &buf) != 0)
                        {
                                DBG1(DBG_CFG, "expanding file expression '%s' failed", pattern);
-                               globfree(&buf);
                        }
                        else
                        {