From 68e66b6cfb87ab71b742d3f320fafb12a68fb68d Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Thu, 13 Sep 2012 07:43:32 +0200 Subject: [PATCH] Fix bug #1932 director crash. --- bacula/src/lib/bsys.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bacula/src/lib/bsys.c b/bacula/src/lib/bsys.c index aecad99100..fdee8f6090 100644 --- a/bacula/src/lib/bsys.c +++ b/bacula/src/lib/bsys.c @@ -53,7 +53,7 @@ static pthread_cond_t timer = PTHREAD_COND_INITIALIZER; int safer_unlink(const char *pathname, const char *regx) { int rc; - regex_t preg1, pexc1; + regex_t preg1; char prbuf[500]; const int nmatch = 30; regmatch_t pmatch[nmatch]; @@ -83,7 +83,6 @@ int safer_unlink(const char *pathname, const char *regx) rtn = EROFS; } regfree(&preg1); - regfree(&pexc1); return rtn; } -- 2.39.5