diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index dcdc198..a16fa49 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -1838,6 +1838,7 @@ void kpatch_regenerate_special_section(struct kpatch_elf *kelf, /* no changed or global functions referenced */ sec->status = sec->base->status = SAME; sec->include = sec->base->include = 0; + free(dest); return; }