FireBirdLib - Topfield TMS PVR TAP Programming Library
ELFCleanup.c
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include "
ELF.h
"
3
#include "
FBLib_elf.h
"
4
5
void
ELFCleanup
(
void
)
6
{
7
TRACEENTER
();
8
9
if
(
fTAP
)
10
{
11
close(
fTAP
);
12
fTAP
= 0;
13
}
14
15
if
(
ELFHeader
)
16
{
17
TAP_MemFree(
ELFHeader
);
18
ELFHeader
= NULL;
19
}
20
21
if
(
SectionHeaders
)
22
{
23
TAP_MemFree(
SectionHeaders
);
24
SectionHeaders
= NULL;
25
}
26
27
if
(
shstrtab
)
28
{
29
TAP_MemFree(
shstrtab
);
30
shstrtab
= NULL;
31
}
32
33
if
(
strtab
)
34
{
35
TAP_MemFree(
strtab
);
36
strtab
= NULL;
37
}
38
39
TRACEEXIT
();
40
}
ELFCleanup
void ELFCleanup(void)
Definition:
ELFCleanup.c:5
SectionHeaders
Elf32_Shdr * SectionHeaders
Definition:
ELFOpenFile.c:7
strtab
char * strtab
Definition:
ELFOpenFile.c:9
shstrtab
char * shstrtab
Definition:
ELFOpenFile.c:8
ELFHeader
Elf32_Ehdr * ELFHeader
Definition:
ELFOpenFile.c:6
fTAP
int fTAP
Definition:
ELFOpenFile.c:5
ELF.h
FBLib_elf.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
elf
ELFCleanup.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3