mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-30 13:54:39 +00:00
Fixing memory defects
This commit is contained in:
parent
1975848ecc
commit
3be78775ca
@ -143,6 +143,7 @@ GF_Err stbl_AddDTS(GF_SampleTableBox *stbl, u64 DTS, u32 *sampleNumber, u32 Last
|
||||
if (stts->nb_entries + 2 >= stts->alloc_size) {
|
||||
stts->alloc_size += 2;
|
||||
stts->entries = gf_realloc(stts->entries, sizeof(GF_SttsEntry)*stts->alloc_size);
|
||||
gf_free(DTSs);
|
||||
if (!stts->entries) return GF_OUT_OF_MEM;
|
||||
memset(&stts->entries[stts->nb_entries], 0, sizeof(GF_SttsEntry)*(stts->alloc_size - stts->nb_entries));
|
||||
}
|
||||
|
@ -291,6 +291,8 @@ void net_send_epg(
|
||||
if (write_block(srv_sd, EPG_DATA, epg, len) <= 0)
|
||||
fprintf(stderr, "Can't send EPG data\n");
|
||||
|
||||
free(epg);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user