Merge pull request #459 from ColinIanKing/master

Fix memory leak on dest buffer on early return path
This commit is contained in:
Josh Poimboeuf 2014-10-21 10:03:09 -05:00
commit f0ab1caad1
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}