diff mbox

[FFmpeg-devel] libavformat/dashdec: Fix for un-free memory - bug # 7338

Message ID BN6PR22MB03371F5B78AB5C59A31F9815FE260@BN6PR22MB0337.namprd22.prod.outlook.com
State Accepted
Commit af4c2acddd15ddac97eb4c9f23bfe593ec73b59d
Headers show

Commit Message

Colin NG Aug. 8, 2018, 5:27 p.m. UTC
---
 libavformat/dashdec.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Carl Eugen Hoyos Aug. 8, 2018, 10 p.m. UTC | #1
2018-08-08 19:27 GMT+02:00, Colin NG <colin_ng@hotmail.com>:
> ---
>  libavformat/dashdec.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
> index 09b06ef..5730252 100644
> --- a/libavformat/dashdec.c
> +++ b/libavformat/dashdec.c
> @@ -1879,7 +1879,6 @@ static int is_common_init_section_exist(struct
> representation **pls, int n_pls)
>
>  static void copy_init_section(struct representation *rep_dest, struct
> representation *rep_src)
>  {
> -    *rep_dest->init_section = *rep_src->init_section;

Patch applied.

Thank you, Carl Eugen
diff mbox

Patch

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 09b06ef..5730252 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -1879,7 +1879,6 @@  static int is_common_init_section_exist(struct representation **pls, int n_pls)
 
 static void copy_init_section(struct representation *rep_dest, struct representation *rep_src)
 {
-    *rep_dest->init_section = *rep_src->init_section;
     rep_dest->init_sec_buf = av_mallocz(rep_src->init_sec_buf_size);
     memcpy(rep_dest->init_sec_buf, rep_src->init_sec_buf, rep_src->init_sec_data_len);
     rep_dest->init_sec_buf_size = rep_src->init_sec_buf_size;