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

avprobe.c:357:1: start of procedure old_print_object_footer()
355. }
356. 
357. static void old_print_object_footer(const char *name)
     ^
358. {
359.     char *str, *p;

avprobe.c:361:10: Taking false branch
359.     char *str, *p;
360. 
361.     if (!strcmp(name, "tags"))
              ^
362.         return;
363. 

avprobe.c:364:5: 
362.         return;
363. 
364.     str = p = av_strdup(name);
         ^
365.     if (!str)
366.         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:365:10: Taking false branch
363. 
364.     str = p = av_strdup(name);
365.     if (!str)
              ^
366.         return;
367.     while (*p) {

avprobe.c:367:12: Loop condition is true. Entering loop body
365.     if (!str)
366.         return;
367.     while (*p) {
                ^
368.         *p = av_toupper(*p);
369.         p++;

avprobe.c:368:9: 
366.         return;
367.     while (*p) {
368.         *p = av_toupper(*p);
             ^
369.         p++;
370.     }

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:369:9: 
367.     while (*p) {
368.         *p = av_toupper(*p);
369.         p++;
             ^
370.     }
371. 

avprobe.c:367:12: Loop condition is false. Leaving loop
365.     if (!str)
366.         return;
367.     while (*p) {
                ^
368.         *p = av_toupper(*p);
369.         p++;

avprobe.c:372:5: 
370.     }
371. 
372.     avio_printf(probe_out, "[/%s]\n", str);
         ^
373.     av_freep(&str);
374. }

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

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

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

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

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

libavformat/aviobuf.c:1021:5: 
  1019.     va_end(ap);
  1020.     avio_write(s, buf, strlen(buf));
  1021.     return ret;
            ^
  1022. }
  1023. 

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

avprobe.c:373:5: Skipping av_freep(): empty list of specs
371. 
372.     avio_printf(probe_out, "[/%s]\n", str);
373.     av_freep(&str);
         ^
374. }
375. 
