mirror of https://github.com/dynup/kpatch
Merge pull request #459 from ColinIanKing/master
Fix memory leak on dest buffer on early return path
This commit is contained in:
commit
f0ab1caad1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue