repart: fix memory leak
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 18 Jun 2024 12:07:50 +0000 (14:07 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Jun 2024 18:41:01 +0000 (20:41 +0200)
(cherry picked from commit a81f5ffd40081441dafc678fe83d185436dde35a)

src/partition/repart.c

index 78cf60f724550176b642d48548aacf9af2aed7a1..8f64520ee700acda306f0e240b75797fc3a7291d 100644 (file)
@@ -187,6 +187,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_tpm2_hash_pcr_values, freep);
 STATIC_DESTRUCTOR_REGISTER(arg_tpm2_public_key, freep);
 STATIC_DESTRUCTOR_REGISTER(arg_tpm2_pcrlock, freep);
 STATIC_DESTRUCTOR_REGISTER(arg_filter_partitions, freep);
+STATIC_DESTRUCTOR_REGISTER(arg_defer_partitions, freep);
 STATIC_DESTRUCTOR_REGISTER(arg_image_policy, image_policy_freep);
 STATIC_DESTRUCTOR_REGISTER(arg_copy_from, strv_freep);
 STATIC_DESTRUCTOR_REGISTER(arg_copy_source, freep);