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

avprobe.c:343:1: start of procedure old_print_object_footer()
341. }
342. 
343. static void old_print_object_footer(const char *name)
     ^
344. {
345.     char *str, *p;

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

avprobe.c:350:5: 
348.         return;
349. 
350.     str = p = av_strdup(name);
         ^
351.     if (!str)
352.         return;

libavutil/mem.c:219:1: start of procedure av_strdup()
  217. }
  218. 
  219. char *av_strdup(const char *s)
       ^
  220. {
  221.     char *ptr = NULL;

libavutil/mem.c:221:5: 
  219. char *av_strdup(const char *s)
  220. {
  221.     char *ptr = NULL;
           ^
  222.     if (s) {
  223.         int len = strlen(s) + 1;

libavutil/mem.c:222:9: Taking true branch
  220. {
  221.     char *ptr = NULL;
  222.     if (s) {
               ^
  223.         int len = strlen(s) + 1;
  224.         ptr = av_realloc(NULL, len);

libavutil/mem.c:223:9: 
  221.     char *ptr = NULL;
  222.     if (s) {
  223.         int len = strlen(s) + 1;
               ^
  224.         ptr = av_realloc(NULL, len);
  225.         if (ptr)

libavutil/mem.c:224:9: 
  222.     if (s) {
  223.         int len = strlen(s) + 1;
  224.         ptr = av_realloc(NULL, len);
               ^
  225.         if (ptr)
  226.             memcpy(ptr, s, len);

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:225:13: Taking true branch
  223.         int len = strlen(s) + 1;
  224.         ptr = av_realloc(NULL, len);
  225.         if (ptr)
                   ^
  226.             memcpy(ptr, s, len);
  227.     }

libavutil/mem.c:226:13: 
  224.         ptr = av_realloc(NULL, len);
  225.         if (ptr)
  226.             memcpy(ptr, s, len);
                   ^
  227.     }
  228.     return ptr;

libavutil/mem.c:228:5: 
  226.             memcpy(ptr, s, len);
  227.     }
  228.     return ptr;
           ^
  229. }
  230. 

libavutil/mem.c:229:1: return from a call to av_strdup
  227.     }
  228.     return ptr;
  229. }
       ^
  230. 
  231. char *av_strndup(const char *s, size_t len)

avprobe.c:351:10: Taking false branch
349. 
350.     str = p = av_strdup(name);
351.     if (!str)
              ^
352.         return;
353.     while (*p) {

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

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

libavutil/avstring.h:172:1: start of procedure av_toupper()
  170.  * Locale-independent conversion of ASCII characters to uppercase.
  171.  */
  172. static inline av_const int av_toupper(int c)
       ^
  173. {
  174.     if (c >= 'a' && c <= 'z')

libavutil/avstring.h:174:9: Taking false branch
  172. static inline av_const int av_toupper(int c)
  173. {
  174.     if (c >= 'a' && c <= 'z')
               ^
  175.         c ^= 0x20;
  176.     return c;

libavutil/avstring.h:176:5: 
  174.     if (c >= 'a' && c <= 'z')
  175.         c ^= 0x20;
  176.     return c;
           ^
  177. }
  178. 

libavutil/avstring.h:177:1: return from a call to av_toupper
  175.         c ^= 0x20;
  176.     return c;
  177. }
       ^
  178. 
  179. /**

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

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

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

libavformat/aviobuf.c:823:1: start of procedure avio_printf()
  821. }
  822. 
  823. int avio_printf(AVIOContext *s, const char *fmt, ...)
       ^
  824. {
  825.     va_list ap;

libavformat/aviobuf.c:829:5: 
  827.     int ret;
  828. 
  829.     va_start(ap, fmt);
           ^
  830.     ret = vsnprintf(buf, sizeof(buf), fmt, ap);
  831.     va_end(ap);

libavformat/aviobuf.c:830:5: 
  828. 
  829.     va_start(ap, fmt);
  830.     ret = vsnprintf(buf, sizeof(buf), fmt, ap);
           ^
  831.     va_end(ap);
  832.     avio_write(s, buf, strlen(buf));

libavformat/aviobuf.c:831:5: 
  829.     va_start(ap, fmt);
  830.     ret = vsnprintf(buf, sizeof(buf), fmt, ap);
  831.     va_end(ap);
           ^
  832.     avio_write(s, buf, strlen(buf));
  833.     return ret;

libavformat/aviobuf.c:832:5: Skipping avio_write(): empty list of specs
  830.     ret = vsnprintf(buf, sizeof(buf), fmt, ap);
  831.     va_end(ap);
  832.     avio_write(s, buf, strlen(buf));
           ^
  833.     return ret;
  834. }

libavformat/aviobuf.c:833:5: 
  831.     va_end(ap);
  832.     avio_write(s, buf, strlen(buf));
  833.     return ret;
           ^
  834. }
  835. 

libavformat/aviobuf.c:834:1: return from a call to avio_printf
  832.     avio_write(s, buf, strlen(buf));
  833.     return ret;
  834. }
       ^
  835. 
  836. int avio_pause(AVIOContext *s, int pause)

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