Просмотр исходного кода

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

tags/v0.9.3
Michael Brown 19 лет назад
Родитель
Сommit
1f92c6b3e8
1 измененных файлов: 1 добавлений и 0 удалений
  1. 1
    0
      src/net/tcp/http.c

+ 1
- 0
src/net/tcp/http.c Просмотреть файл

424
  err:
424
  err:
425
 	DBGC ( http, "HTTP %p could not create request: %s\n", 
425
 	DBGC ( http, "HTTP %p could not create request: %s\n", 
426
 	       http, strerror ( rc ) );
426
 	       http, strerror ( rc ) );
427
+	free ( http );
427
 	return rc;
428
 	return rc;
428
 }
429
 }

Загрузка…
Отмена
Сохранить