gpt-auto-generator: fix memory leak

Follow-up for 74cfd0921c
This commit is contained in:
Antonio Alvarez Feijoo
2025-04-04 20:02:02 +09:00
committed by Yu Watanabe
parent 7dce799f5c
commit cec81b234c
+2 -1
View File
@@ -60,11 +60,12 @@ static char *arg_usr_options = NULL;
static ImagePolicy *arg_image_policy = NULL;
static ImageFilter *arg_image_filter = NULL;
STATIC_DESTRUCTOR_REGISTER(arg_image_policy, image_policy_freep);
STATIC_DESTRUCTOR_REGISTER(arg_root_fstype, freep);
STATIC_DESTRUCTOR_REGISTER(arg_root_options, freep);
STATIC_DESTRUCTOR_REGISTER(arg_usr_fstype, freep);
STATIC_DESTRUCTOR_REGISTER(arg_usr_options, freep);
STATIC_DESTRUCTOR_REGISTER(arg_image_policy, image_policy_freep);
STATIC_DESTRUCTOR_REGISTER(arg_image_filter, image_filter_freep);
#define LOADER_PARTITION_IDLE_USEC (120 * USEC_PER_SEC)