diff --git a/src/manage_sql.c b/src/manage_sql.c index cbda82217..59ece0094 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -50850,7 +50850,6 @@ create_permission_internal (const char *name_arg, const char *comment, assert ((resource_id == resource_id_arg) || (resource_id == NULL)); quoted_name = sql_quote (name); - g_free (name); quoted_comment = sql_quote (comment ? comment : ""); sql ("INSERT INTO permissions" @@ -50923,6 +50922,7 @@ create_permission_internal (const char *name_arg, const char *comment, g_free (quoted_name); g_free (resource_type); g_free (subject_where); + g_free (name); return 0; }