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

libavformat/http.c:397:1: start of procedure parse_icy()
395. 
396. // Concat all Icy- header lines
397. static int parse_icy(HTTPContext *s, const char *tag, const char *p)
     ^
398. {
399.     int len = 4 + strlen(p) + strlen(tag);

libavformat/http.c:399:5: 
397. static int parse_icy(HTTPContext *s, const char *tag, const char *p)
398. {
399.     int len = 4 + strlen(p) + strlen(tag);
         ^
400.     int is_first = !s->icy_metadata_headers;
401.     int ret;

libavformat/http.c:400:21: Condition is false
398. {
399.     int len = 4 + strlen(p) + strlen(tag);
400.     int is_first = !s->icy_metadata_headers;
                         ^
401.     int ret;
402. 

libavformat/http.c:400:20: 
398. {
399.     int len = 4 + strlen(p) + strlen(tag);
400.     int is_first = !s->icy_metadata_headers;
                        ^
401.     int ret;
402. 

libavformat/http.c:400:5: 
398. {
399.     int len = 4 + strlen(p) + strlen(tag);
400.     int is_first = !s->icy_metadata_headers;
         ^
401.     int ret;
402. 

libavformat/http.c:403:9: Taking false branch
401.     int ret;
402. 
403.     if (s->icy_metadata_headers)
             ^
404.         len += strlen(s->icy_metadata_headers);
405. 

libavformat/http.c:406:9: 
404.         len += strlen(s->icy_metadata_headers);
405. 
406.     if ((ret = av_reallocp(&s->icy_metadata_headers, len)) < 0)
             ^
407.         return ret;
408. 

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:406:9: Taking false branch
404.         len += strlen(s->icy_metadata_headers);
405. 
406.     if ((ret = av_reallocp(&s->icy_metadata_headers, len)) < 0)
             ^
407.         return ret;
408. 

libavformat/http.c:409:9: Taking true branch
407.         return ret;
408. 
409.     if (is_first)
             ^
410.         *s->icy_metadata_headers = '\0';
411. 

libavformat/http.c:410:9: 
408. 
409.     if (is_first)
410.         *s->icy_metadata_headers = '\0';
             ^
411. 
412.     av_strlcatf(s->icy_metadata_headers, len, "%s: %s\n", tag, p);
