File: scanneraux.c

package info (click to toggle)
openvas-scanner 23.35.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,416 kB
  • sloc: ansic: 41,615; xml: 6,251; pascal: 3,723; yacc: 1,250; sh: 1,068; makefile: 333; sql: 273; javascript: 12
file content (29 lines) | stat: -rw-r--r-- 567 bytes parent folder | download
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
/* SPDX-FileCopyrightText: 2023 Greenbone AG
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

/**
 * @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;
}