From: Marco van Wieringen Date: Thu, 13 Sep 2012 05:43:32 +0000 (+0200) Subject: Fix bug #1932 director crash. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c18f95b672bbd8dd831555883496e82df3dc97fb;p=bacula%2Fbacula Fix bug #1932 director crash. --- 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; }