From 413d8fe0e30f5eede9d3b936c2d606776eca104f Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 11 Nov 2010 12:52:48 +0100 Subject: [PATCH] Avoid calling globfree twice on failure. --- src/libcharon/plugins/stroke/stroke_cred.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libcharon/plugins/stroke/stroke_cred.c b/src/libcharon/plugins/stroke/stroke_cred.c index 91e71f1f45..f4616a2502 100644 --- a/src/libcharon/plugins/stroke/stroke_cred.c +++ b/src/libcharon/plugins/stroke/stroke_cred.c @@ -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 { -- 2.47.2