Sfoglia il codice sorgente

Must free http on the error path; nothing else will do it

tags/v0.9.3
Michael Brown 18 anni fa
parent
commit
1f92c6b3e8
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      src/net/tcp/http.c

+ 1
- 0
src/net/tcp/http.c Vedi File

@@ -424,5 +424,6 @@ int http_get ( struct uri *uri, struct buffer *buffer, struct async *parent ) {
424 424
  err:
425 425
 	DBGC ( http, "HTTP %p could not create request: %s\n", 
426 426
 	       http, strerror ( rc ) );
427
+	free ( http );
427 428
 	return rc;
428 429
 }

Loading…
Annulla
Salva