greenbone / gsad

Greenbone Security Assistant HTTP Server - The server talking to the Greenbone Vulnerability Management daemon (gvmd).
GNU Affero General Public License v3.0
11 stars 14 forks source link

Use result of g_string_free when arg 2 is FALSE #153

Closed mattmundell closed 1 year ago

mattmundell commented 1 year ago

What

Always use the return from g_string_free when stealing the string.

In restore_gmp and empty_trashcan_gmp prevent the steal by removing unused XML returns.

Why

Prevents warnings with glib 2.76.

github-actions[bot] commented 1 year ago

Conventional Commits Report

:cry: No conventional commits found.

:point_right: Learn more about the conventional commits usage at Greenbone.