summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-28 04:42:55 +0000
committermidipix <writeonce@midipix.org>2024-01-28 07:25:29 +0000
commit7fe83d363d5fd2d27b5c44b95c3a50c493ce7876 (patch)
tree63d39c358a5e9e104f3597f169ccdef7a0fc256b /src
parentd6b3d71e6fd9e93fa15c76d4448594f80260b341 (diff)
downloadslibtool-7fe83d363d5fd2d27b5c44b95c3a50c493ce7876.tar.bz2
slibtool-7fe83d363d5fd2d27b5c44b95c3a50c493ce7876.tar.xz
struct ar_meta_armap_common_{32|64}: added the ar_symrefs member.
Diffstat (limited to 'src')
-rw-r--r--src/arbits/slbt_archive_meta.c6
-rw-r--r--src/internal/slibtool_ar_impl.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/arbits/slbt_archive_meta.c b/src/arbits/slbt_archive_meta.c
index d57b5bf..9f6595c 100644
--- a/src/arbits/slbt_archive_meta.c
+++ b/src/arbits/slbt_archive_meta.c
@@ -36,6 +36,12 @@ static const char ar_signature[] = AR_SIGNATURE;
static int slbt_free_archive_meta_impl(struct slbt_archive_meta_impl * meta, int ret)
{
if (meta) {
+ if (meta->armaps.armap_symrefs_32)
+ free(meta->armaps.armap_symrefs_32);
+
+ if (meta->armaps.armap_symrefs_64)
+ free(meta->armaps.armap_symrefs_64);
+
if (meta->hdrinfov)
free(meta->hdrinfov);
diff --git a/src/internal/slibtool_ar_impl.h b/src/internal/slibtool_ar_impl.h
index b96b77b..48cdec8 100644
--- a/src/internal/slibtool_ar_impl.h
+++ b/src/internal/slibtool_ar_impl.h
@@ -8,6 +8,8 @@
extern const struct argv_option slbt_ar_options[];
struct ar_armaps_impl {
+ struct ar_meta_armap_ref_32 * armap_symrefs_32;
+ struct ar_meta_armap_ref_64 * armap_symrefs_64;
struct ar_raw_armap_bsd_32 armap_bsd_32;
struct ar_raw_armap_bsd_64 armap_bsd_64;
struct ar_raw_armap_sysv_32 armap_sysv_32;