diff --git a/base/nvti.c b/base/nvti.c index 899be405..057b1860 100644 --- a/base/nvti.c +++ b/base/nvti.c @@ -1235,8 +1235,7 @@ nvti_set_solution_method (nvti_t *n, const gchar *solution_method) if (!n) return -1; - if (n->solution_method) - g_free (n->solution_method); + g_free (n->solution_method); n->solution_method = g_strdup (solution_method); return 0; }