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

avprobe.c:344:1: start of procedure old_print_object_header()
342.  * old-style pseudo-INI
343.  */
344. static void old_print_object_header(const char *name)
     ^
345. {
346.     char *str, *p;

avprobe.c:348:10: Taking false branch
346.     char *str, *p;
347. 
348.     if (!strcmp(name, "tags"))
              ^
349.         return;
350. 

avprobe.c:351:5: 
349.         return;
350. 
351.     str = p = av_strdup(name);
         ^
352.     if (!str)
353.         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:352:10: Taking false branch
350. 
351.     str = p = av_strdup(name);
352.     if (!str)
              ^
353.         return;
354.     while (*p) {

avprobe.c:354:12: Loop condition is true. Entering loop body
352.     if (!str)
353.         return;
354.     while (*p) {
                ^
355.         *p = av_toupper(*p);
356.         p++;

avprobe.c:355:9: 
353.         return;
354.     while (*p) {
355.         *p = av_toupper(*p);
             ^
356.         p++;
357.     }

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:356:9: 
354.     while (*p) {
355.         *p = av_toupper(*p);
356.         p++;
             ^
357.     }
358. 

avprobe.c:354:12: Loop condition is false. Leaving loop
352.     if (!str)
353.         return;
354.     while (*p) {
                ^
355.         *p = av_toupper(*p);
356.         p++;

avprobe.c:359:5: 
357.     }
358. 
359.     avio_printf(probe_out, "[%s]\n", str);
         ^
360.     av_freep(&str);
361. }

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:360:5: Skipping av_freep(): empty list of specs
358. 
359.     avio_printf(probe_out, "[%s]\n", str);
360.     av_freep(&str);
         ^
361. }
362. 
