summaryrefslogtreecommitdiff
path: root/src/arbits/slbt_archive_meta.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-27 09:57:51 +0000
committermidipix <writeonce@midipix.org>2024-02-28 04:02:41 +0000
commitbbf27c0ae5b4cd69e031f7e53bd2456fbc17ab2b (patch)
tree7b98a32494f969a7ee631f0f2e724107aaf8da21 /src/arbits/slbt_archive_meta.c
parent503f2f8123c560cab69786935d8ba42e77f8f2c0 (diff)
downloadslibtool-bbf27c0ae5b4cd69e031f7e53bd2456fbc17ab2b.tar.bz2
slibtool-bbf27c0ae5b4cd69e031f7e53bd2456fbc17ab2b.tar.xz
archiver api: added slbt_ar_update_syminfo() (nm output to symbol info vector).
Diffstat (limited to 'src/arbits/slbt_archive_meta.c')
-rw-r--r--src/arbits/slbt_archive_meta.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arbits/slbt_archive_meta.c b/src/arbits/slbt_archive_meta.c
index a966c26..e5d0a9f 100644
--- a/src/arbits/slbt_archive_meta.c
+++ b/src/arbits/slbt_archive_meta.c
@@ -40,6 +40,12 @@ static int slbt_ar_free_archive_meta_impl(struct slbt_archive_meta_impl * meta,
if (meta->namestrs)
free(meta->namestrs);
+ if (meta->syminfo)
+ free(meta->syminfo);
+
+ if (meta->syminfv)
+ free(meta->syminfv);
+
if (meta->memberv)
free(meta->memberv);
@@ -55,6 +61,9 @@ static int slbt_ar_free_archive_meta_impl(struct slbt_archive_meta_impl * meta,
if (meta->mapstrv)
free(meta->mapstrv);
+ if (meta->nminfo)
+ slbt_lib_free_txtfile_ctx(meta->nminfo);
+
free(meta);
}