From 62bf490fa259a6cace826c0fc60796ac7b1c35c4 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 30 Mar 2009 12:50:00 +0000 Subject: [PATCH] ebl Fix small memory leak in fileregexp bsr code git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8649 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/bsr.c | 3 +++ bacula/technotes | 2 ++ 2 files changed, 5 insertions(+) diff --git a/bacula/src/dird/bsr.c b/bacula/src/dird/bsr.c index b0fbe3b759..81e384314d 100644 --- a/bacula/src/dird/bsr.c +++ b/bacula/src/dird/bsr.c @@ -152,6 +152,9 @@ void free_bsr(RBSR *bsr) if (bsr->VolParams) { free(bsr->VolParams); } + if (bsr->fileregex) { + free(bsr->fileregex); + } next = bsr->next; free(bsr); } diff --git a/bacula/technotes b/bacula/technotes index bcafdbb229..e1bde67bdc 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -1,6 +1,8 @@ Technical notes for current SVN General: +30Mar09 +ebl Fix small memory leak in fileregexp bsr code 29Mar09 kes Correct bacula32.def entry point as specified by James. kes Add code to FD plugin driver to make a copy of the plugin -- 2.39.5