summaryrefslogtreecommitdiff
path: root/src/libelfu/model/section.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libelfu/model/section.c')
-rw-r--r--src/libelfu/model/section.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libelfu/model/section.c b/src/libelfu/model/section.c
index c93c5c8..9ef6fd8 100644
--- a/src/libelfu/model/section.c
+++ b/src/libelfu/model/section.c
@@ -219,3 +219,16 @@ ElfuScn* elfu_mScnAlloc()
return ms;
}
+
+void elfu_mScnDestroy(ElfuScn* ms)
+{
+ assert(ms);
+
+ // TODO: Free symtab/reltab
+
+ if (ms->databuf) {
+ free(ms->databuf);
+ }
+
+ free(ms);
+}