libavutil/mem.c:188: error: Memory Leak
  memory dynamically allocated by call to `av_realloc()` at line 180, column 11 is not reachable after line 188, column 1.

libavutil/mem.c:168:1: start of procedure av_reallocp_array()
166. }
167. 
168. int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
     ^
169. {
170.     void *val;

libavutil/mem.c:172:10: Taking false branch
170.     void *val;
171. 
172.     if (!size || nmemb >= INT_MAX / size)
              ^
173.         return AVERROR(ENOMEM);
174.     if (!nmemb) {

libavutil/mem.c:172:18: Taking false branch
170.     void *val;
171. 
172.     if (!size || nmemb >= INT_MAX / size)
                      ^
173.         return AVERROR(ENOMEM);
174.     if (!nmemb) {

libavutil/mem.c:174:10: Taking false branch
172.     if (!size || nmemb >= INT_MAX / size)
173.         return AVERROR(ENOMEM);
174.     if (!nmemb) {
              ^
175.         av_freep(ptr);
176.         return 0;

libavutil/mem.c:179:5: 
177.     }
178. 
179.     memcpy(&val, ptr, sizeof(val));
         ^
180.     val = av_realloc(val, nmemb * size);
181.     if (!val) {

libavutil/mem.c:180:5: 
178. 
179.     memcpy(&val, ptr, sizeof(val));
180.     val = av_realloc(val, nmemb * size);
         ^
181.     if (!val) {
182.         av_freep(ptr);

libavutil/mem.c:117:1: start of procedure av_realloc()
  115. }
  116. 
  117. void *av_realloc(void *ptr, size_t size)
       ^
  118. {
  119. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:124:9: Taking false branch
  122. 
  123.     /* let's disallow possibly ambiguous cases */
  124.     if (size > (INT_MAX - 16))
               ^
  125.         return NULL;
  126. 

libavutil/mem.c:136:5: 
  134.     return _aligned_realloc(ptr, size, 32);
  135. #else
  136.     return realloc(ptr, size);
           ^
  137. #endif
  138. }

libavutil/mem.c:138:1: return from a call to av_realloc
  136.     return realloc(ptr, size);
  137. #endif
  138. }
       ^
  139. 
  140. int av_reallocp(void *ptr, size_t size)

libavutil/mem.c:181:10: Taking false branch
179.     memcpy(&val, ptr, sizeof(val));
180.     val = av_realloc(val, nmemb * size);
181.     if (!val) {
              ^
182.         av_freep(ptr);
183.         return AVERROR(ENOMEM);

libavutil/mem.c:186:5: 
184.     }
185. 
186.     memcpy(ptr, &val, sizeof(val));
         ^
187.     return 0;
188. }

libavutil/mem.c:187:5: 
185. 
186.     memcpy(ptr, &val, sizeof(val));
187.     return 0;
         ^
188. }
189. 

libavutil/mem.c:188:1: return from a call to av_reallocp_array
186.     memcpy(ptr, &val, sizeof(val));
187.     return 0;
188. }
     ^
189. 
190. void av_free(void *ptr)
