blob: 115e33cd2e95807c1782eca475d341443e2f5421 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-core_src_stored_btape.cc,v 1.2 2021/02/01 09:08:44 kardel Exp $
add missing free*() calls
--- core/src/stored/btape.cc.orig 2020-12-16 07:46:16.000000000 +0000
+++ core/src/stored/btape.cc
@@ -327,6 +327,7 @@ int main(int margc, char* margv[])
static void TerminateBtape(int status)
{
+ FreePlugins(jcr);
FreeJcr(jcr);
jcr = NULL;
@@ -365,6 +366,8 @@ static void TerminateBtape(int status)
}
StopWatchdog();
+ FlushCryptoCache();
+ UnloadSdPlugins();
TermMsg();
RecentJobResultsList::Cleanup();
CleanupJcrChain();
@@ -373,7 +376,6 @@ static void TerminateBtape(int status)
exit(status);
}
-
btime_t total_time = 0;
uint64_t total_size = 0;
|