mirror of https://github.com/dynup/kpatch
b95f0f53af
Because create-diff-object is a one-shot program (not a long lived process) we haven't really bothered with cleaning up and freeing any allocated memory. However, freeing data when it passes out of the logical scope does have debugging benefits. This commit adds two new functions for tearing down and freeing the primary struct kpatch_elf data structures. The idea is the if a stale pointer still references the old data structure that has passed out of the logical scope, an issue will be more immediately apparent (i.e. NULL references). Signed-off-by: Seth Jennings <sjenning@redhat.com> |
||
---|---|---|
.. | ||
Makefile | ||
create-diff-object.c | ||
kpatch-build | ||
list.h | ||
lookup.c | ||
lookup.h |