summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2021-03-23 18:09:34 +0200
committerGitHub <noreply@github.com>2021-03-23 18:09:34 +0200
commit7ebb0a4da20465016a32a3c0b28635277926b815 (patch)
treea68ec215e14e968d9a8214f857e84672699b1c18 /daemon
parentefe2a951ad9826e61a1f3e4229b6b8bd61e961ef (diff)
Fix memory leak when archived data is requested (#10837)
Diffstat (limited to 'daemon')
-rw-r--r--daemon/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c
index eab53dea6f..346486a84f 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -50,6 +50,7 @@ void netdata_cleanup_and_exit(int ret) {
rrdeng_exit(&multidb_ctx);
#endif
}
+ sql_close_database();
// unlink the pid
if(pidfile[0]) {