avprobe.c:379: error: Memory Leak
  memory dynamically allocated by call to `av_strdup()` at line 370, column 15 is not reachable after line 379, column 5.

avprobe.c:363:1: start of procedure old_print_object_footer()
361. }
362. 
363. static void old_print_object_footer(const char *name)
     ^
364. {
365.     char *str, *p;

avprobe.c:367:10: Taking false branch
365.     char *str, *p;
366. 
367.     if (!strcmp(name, "tags"))
              ^
368.         return;
369. 

avprobe.c:370:5: 
368.         return;
369. 
370.     str = p = av_strdup(name);
         ^
371.     if (!str)
372.         return;

libavutil/mem.c:196:1: start of procedure av_strdup()
  194. }
  195. 
  196. char *av_strdup(const char *s)
       ^
  197. {
  198.     char *ptr = NULL;

libavutil/mem.c:198:5: 
  196. char *av_strdup(const char *s)
  197. {
  198.     char *ptr = NULL;
           ^
  199.     if (s) {
  200.         int len = strlen(s) + 1;

libavutil/mem.c:199:9: Taking true branch
  197. {
  198.     char *ptr = NULL;
  199.     if (s) {
               ^
  200.         int len = strlen(s) + 1;
  201.         ptr = av_realloc(NULL, len);

libavutil/mem.c:200:9: 
  198.     char *ptr = NULL;
  199.     if (s) {
  200.         int len = strlen(s) + 1;
               ^
  201.         ptr = av_realloc(NULL, len);
  202.         if (ptr)

libavutil/mem.c:201:9: 
  199.     if (s) {
  200.         int len = strlen(s) + 1;
  201.         ptr = av_realloc(NULL, len);
               ^
  202.         if (ptr)
  203.             memcpy(ptr, s, len);

libavutil/mem.c:107:1: start of procedure av_realloc()
    105. }
    106. 
    107. void *av_realloc(void *ptr, size_t size)
         ^
    108. {
    109.     /* let's disallow possibly ambiguous cases */

libavutil/mem.c:110:9: Taking false branch
    108. {
    109.     /* let's disallow possibly ambiguous cases */
    110.     if (size > (INT_MAX - 16))
                 ^
    111.         return NULL;
    112. 

libavutil/mem.c:116:5: 
    114.     return _aligned_realloc(ptr, size, 32);
    115. #else
    116.     return realloc(ptr, size);
             ^
    117. #endif
    118. }

libavutil/mem.c:118:1: return from a call to av_realloc
    116.     return realloc(ptr, size);
    117. #endif
    118. }
         ^
    119. 
    120. int av_reallocp(void *ptr, size_t size)

libavutil/mem.c:202:13: Taking true branch
  200.         int len = strlen(s) + 1;
  201.         ptr = av_realloc(NULL, len);
  202.         if (ptr)
                   ^
  203.             memcpy(ptr, s, len);
  204.     }

libavutil/mem.c:203:13: 
  201.         ptr = av_realloc(NULL, len);
  202.         if (ptr)
  203.             memcpy(ptr, s, len);
                   ^
  204.     }
  205.     return ptr;

libavutil/mem.c:205:5: 
  203.             memcpy(ptr, s, len);
  204.     }
  205.     return ptr;
           ^
  206. }
  207. 

libavutil/mem.c:206:1: return from a call to av_strdup
  204.     }
  205.     return ptr;
  206. }
       ^
  207. 
  208. char *av_strndup(const char *s, size_t len)

avprobe.c:371:10: Taking false branch
369. 
370.     str = p = av_strdup(name);
371.     if (!str)
              ^
372.         return;
373.     while (*p) {

avprobe.c:373:12: Loop condition is true. Entering loop body
371.     if (!str)
372.         return;
373.     while (*p) {
                ^
374.         *p = av_toupper(*p);
375.         p++;

avprobe.c:374:9: 
372.         return;
373.     while (*p) {
374.         *p = av_toupper(*p);
             ^
375.         p++;
376.     }

libavutil/avstring.h:182:1: start of procedure av_toupper()
  180.  * Locale-independent conversion of ASCII characters to uppercase.
  181.  */
  182. static inline av_const int av_toupper(int c)
       ^
  183. {
  184.     if (c >= 'a' && c <= 'z')

libavutil/avstring.h:184:9: Taking false branch
  182. static inline av_const int av_toupper(int c)
  183. {
  184.     if (c >= 'a' && c <= 'z')
               ^
  185.         c ^= 0x20;
  186.     return c;

libavutil/avstring.h:186:5: 
  184.     if (c >= 'a' && c <= 'z')
  185.         c ^= 0x20;
  186.     return c;
           ^
  187. }
  188. 

libavutil/avstring.h:187:1: return from a call to av_toupper
  185.         c ^= 0x20;
  186.     return c;
  187. }
       ^
  188. 
  189. /**

avprobe.c:375:9: 
373.     while (*p) {
374.         *p = av_toupper(*p);
375.         p++;
             ^
376.     }
377. 

avprobe.c:373:12: Loop condition is false. Leaving loop
371.     if (!str)
372.         return;
373.     while (*p) {
                ^
374.         *p = av_toupper(*p);
375.         p++;

avprobe.c:378:5: 
376.     }
377. 
378.     avio_printf(probe_out, "[/%s]\n", str);
         ^
379.     av_freep(&str);
380. }

libavformat/aviobuf.c:1014:1: start of procedure avio_printf()
  1012. }
  1013. 
  1014. int avio_printf(AVIOContext *s, const char *fmt, ...)
        ^
  1015. {
  1016.     va_list ap;

libavformat/aviobuf.c:1020:5: 
  1018.     int ret;
  1019. 
  1020.     va_start(ap, fmt);
            ^
  1021.     ret = vsnprintf(buf, sizeof(buf), fmt, ap);
  1022.     va_end(ap);

libavformat/aviobuf.c:1021:5: 
  1019. 
  1020.     va_start(ap, fmt);
  1021.     ret = vsnprintf(buf, sizeof(buf), fmt, ap);
            ^
  1022.     va_end(ap);
  1023.     avio_write(s, buf, strlen(buf));

libavformat/aviobuf.c:1022:5: 
  1020.     va_start(ap, fmt);
  1021.     ret = vsnprintf(buf, sizeof(buf), fmt, ap);
  1022.     va_end(ap);
            ^
  1023.     avio_write(s, buf, strlen(buf));
  1024.     return ret;

libavformat/aviobuf.c:1023:5: Skipping avio_write(): empty list of specs
  1021.     ret = vsnprintf(buf, sizeof(buf), fmt, ap);
  1022.     va_end(ap);
  1023.     avio_write(s, buf, strlen(buf));
            ^
  1024.     return ret;
  1025. }

libavformat/aviobuf.c:1024:5: 
  1022.     va_end(ap);
  1023.     avio_write(s, buf, strlen(buf));
  1024.     return ret;
            ^
  1025. }
  1026. 

libavformat/aviobuf.c:1025:1: return from a call to avio_printf
  1023.     avio_write(s, buf, strlen(buf));
  1024.     return ret;
  1025. }
        ^
  1026. 
  1027. int avio_pause(AVIOContext *s, int pause)

avprobe.c:379:5: Skipping av_freep(): empty list of specs
377. 
378.     avio_printf(probe_out, "[/%s]\n", str);
379.     av_freep(&str);
         ^
380. }
381. 
