Changeset 4290

Show
Ignore:
Timestamp:
03/07/10 22:23:24 (6 months ago)
Author:
andoma
Message:

Plug some memory leaks

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/showtime/src/fileaccess/fa_http.c

    r4287 r4290  
    17111711 
    17121712  hc = hf->hf_connection = http_connection_get(hostname, port, errbuf, errlen); 
    1713   if(hf->hf_connection == NULL) 
     1713  if(hf->hf_connection == NULL) { 
     1714    http_destroy(hf); 
    17141715    return -1; 
     1716  } 
    17151717 
    17161718  htsbuf_queue_init(&q, 0); 
     
    17711773  case 303: 
    17721774  case 307: 
    1773     if(redirect(hf, &redircount, errbuf, errlen, code)) 
     1775    if(redirect(hf, &redircount, errbuf, errlen, code)) { 
     1776      http_destroy(hf); 
    17741777      return -1; 
     1778    } 
    17751779    goto retry; 
    17761780 
    17771781  case 401: 
    1778     if(authenticate(hf, errbuf, errlen)) 
     1782    if(authenticate(hf, errbuf, errlen)) { 
     1783      http_destroy(hf); 
    17791784      return -1; 
     1785    } 
    17801786    goto retry; 
    17811787