Commit f2dc11d6 authored by Daniele Tafani's avatar Daniele Tafani
Browse files

Fixed small leak and updated documentation on GrafanaServer.cpp

parent a0304326
//================================================================================
// Name : GrafanaServer.cpp
// Author : Daniele Tafani
// Contact : info@dcdb.it
// Copyright : Leibniz Supercomputing Centre
// Description : An HTTPS server that processes requests from a Grafana frontend.
//================================================================================
//================================================================================
// This file is part of DCDB (DataCenter DataBase)
// Copyright (C) 2019-2019 Leibniz Supercomputing Centre
//
// HTTPServer.cpp
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// Created by Tafani, Daniele on 27.09.18.
// Copyright © 2018 LRZ. All rights reserved.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//================================================================================
#include "Configuration.h"
#include "RestAPI.h"
#include "version.h"
......@@ -69,6 +88,7 @@ void sigHandler(int sig) {
//Stop https server
LOG(info) << "Stopping REST API Server...";
_httpsServer->stop();
}
......
......@@ -54,7 +54,11 @@ public:
hierarchySettings_t hierarchySettings,
DCDB::Connection* cassandraConnection);
virtual ~RestAPI() {}
virtual ~RestAPI() {
delete _navigator;
delete _sensorConfig;
}
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment