OpenVAS Scanner  22.7.9
scanneraux.c File Reference

Auxiliary functions and structures for scanner. More...

#include "scanneraux.h"
Include dependency graph for scanneraux.c:

Go to the source code of this file.

Functions

void destroy_scan_globals (struct scan_globals *globals)
 

Detailed Description

Auxiliary functions and structures for scanner.

Definition in file scanneraux.c.

Function Documentation

◆ destroy_scan_globals()

void destroy_scan_globals ( struct scan_globals globals)

Definition at line 14 of file scanneraux.c.

15 {
16  if (globals == NULL)
17  return;
18 
19  g_free (globals->scan_id);
20 
21  if (globals->files_translation)
22  g_hash_table_destroy (globals->files_translation);
23 
24  if (globals->files_size_translation)
25  g_hash_table_destroy (globals->files_size_translation);
26 
27  g_free (globals);
28  globals = NULL;
29 }

References scan_globals::files_size_translation, scan_globals::files_translation, and scan_globals::scan_id.

Referenced by openvas().

Here is the caller graph for this function:
scan_globals::files_size_translation
GHashTable * files_size_translation
Definition: scanneraux.h:21
scan_globals::files_translation
GHashTable * files_translation
Definition: scanneraux.h:20
scan_globals::scan_id
char * scan_id
Definition: scanneraux.h:22