Skip to content

Commit

Permalink
Add: missing scanneraux.c file, which includes de destroy_scan_globals()
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Oct 21, 2022
1 parent 8e06fe9 commit ab20dab
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions misc/scanneraux.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* Copyright (C) 2009-2022 Greenbone Networks GmbH
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* 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.
*
* 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 St, Fifth Floor, Boston, MA 02110-1301 USA.
*/

/**
* @file scanneraux.c
* @brief Auxiliary functions and structures for scanner.
*/

#include "scanneraux.h"


void
destroy_scan_globals (struct scan_globals *globals)
{
if (globals == NULL)
return;

g_free (globals->scan_id);

if (globals->files_translation)
g_hash_table_destroy (globals->files_translation);

if (globals->files_size_translation)
g_hash_table_destroy (globals->files_size_translation);

g_free (globals);
globals = NULL;
}

0 comments on commit ab20dab

Please sign in to comment.