libavformat/http.c:419: error: Null Dereference
  pointer `s->icy_metadata_headers` last assigned on line 415 could be null and is dereferenced at line 419, column 9.

libavformat/http.c:406:1: start of procedure parse_icy()
404. 
405. // Concat all Icy- header lines
406. static int parse_icy(HTTPContext *s, const char *tag, const char *p)
     ^
407. {
408.     int len = 4 + strlen(p) + strlen(tag);

libavformat/http.c:408:5: 
406. static int parse_icy(HTTPContext *s, const char *tag, const char *p)
407. {
408.     int len = 4 + strlen(p) + strlen(tag);
         ^
409.     int is_first = !s->icy_metadata_headers;
410.     int ret;

libavformat/http.c:409:21: Condition is false
407. {
408.     int len = 4 + strlen(p) + strlen(tag);
409.     int is_first = !s->icy_metadata_headers;
                         ^
410.     int ret;
411. 

libavformat/http.c:409:20: 
407. {
408.     int len = 4 + strlen(p) + strlen(tag);
409.     int is_first = !s->icy_metadata_headers;
                        ^
410.     int ret;
411. 

libavformat/http.c:409:5: 
407. {
408.     int len = 4 + strlen(p) + strlen(tag);
409.     int is_first = !s->icy_metadata_headers;
         ^
410.     int ret;
411. 

libavformat/http.c:412:9: Taking false branch
410.     int ret;
411. 
412.     if (s->icy_metadata_headers)
             ^
413.         len += strlen(s->icy_metadata_headers);
414. 

libavformat/http.c:415:9: 
413.         len += strlen(s->icy_metadata_headers);
414. 
415.     if ((ret = av_reallocp(&s->icy_metadata_headers, len)) < 0)
             ^
416.         return ret;
417. 

libavutil/mem.c:140:1: start of procedure av_reallocp()
  138. }
  139. 
  140. int av_reallocp(void *ptr, size_t size)
       ^
  141. {
  142.     void **ptrptr = ptr;

libavutil/mem.c:142:5: 
  140. int av_reallocp(void *ptr, size_t size)
  141. {
  142.     void **ptrptr = ptr;
           ^
  143.     void *ret;
  144. 

libavutil/mem.c:145:10: Taking true branch
  143.     void *ret;
  144. 
  145.     if (!size) {
                ^
  146.         av_freep(ptr);
  147.         return 0;

libavutil/mem.c:146:9: 
  144. 
  145.     if (!size) {
  146.         av_freep(ptr);
               ^
  147.         return 0;
  148.     }

libavutil/mem.c:198:1: start of procedure av_freep()
    196. }
    197. 
    198. void av_freep(void *arg)
         ^
    199. {
    200.     void **ptr = (void **)arg;

libavutil/mem.c:200:5: 
    198. void av_freep(void *arg)
    199. {
    200.     void **ptr = (void **)arg;
             ^
    201.     av_free(*ptr);
    202.     *ptr = NULL;

libavutil/mem.c:201:5: 
    199. {
    200.     void **ptr = (void **)arg;
    201.     av_free(*ptr);
             ^
    202.     *ptr = NULL;
    203. }

libavutil/mem.c:186:1: start of procedure av_free()
      184. }
      185. 
      186. void av_free(void *ptr)
           ^
      187. {
      188. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:194:5: 
      192.     _aligned_free(ptr);
      193. #else
      194.     free(ptr);
               ^
      195. #endif
      196. }

libavutil/mem.c:196:1: return from a call to av_free
      194.     free(ptr);
      195. #endif
      196. }
           ^
      197. 
      198. void av_freep(void *arg)

libavutil/mem.c:202:5: 
    200.     void **ptr = (void **)arg;
    201.     av_free(*ptr);
    202.     *ptr = NULL;
             ^
    203. }
    204. 

libavutil/mem.c:203:1: return from a call to av_freep
    201.     av_free(*ptr);
    202.     *ptr = NULL;
    203. }
         ^
    204. 
    205. void *av_mallocz(size_t size)

libavutil/mem.c:147:9: 
  145.     if (!size) {
  146.         av_freep(ptr);
  147.         return 0;
               ^
  148.     }
  149.     ret = av_realloc(*ptrptr, size);

libavutil/mem.c:158:1: return from a call to av_reallocp
  156.     *ptrptr = ret;
  157.     return 0;
  158. }
       ^
  159. 
  160. void *av_realloc_array(void *ptr, size_t nmemb, size_t size)

libavformat/http.c:415:9: Taking false branch
413.         len += strlen(s->icy_metadata_headers);
414. 
415.     if ((ret = av_reallocp(&s->icy_metadata_headers, len)) < 0)
             ^
416.         return ret;
417. 

libavformat/http.c:418:9: Taking true branch
416.         return ret;
417. 
418.     if (is_first)
             ^
419.         *s->icy_metadata_headers = '\0';
420. 

libavformat/http.c:419:9: 
417. 
418.     if (is_first)
419.         *s->icy_metadata_headers = '\0';
             ^
420. 
421.     av_strlcatf(s->icy_metadata_headers, len, "%s: %s\n", tag, p);
