Explorar o código

http_async_client: fix memory leak in pkg memory in case of error

Federico Cabiddu %!s(int64=8) %!d(string=hai) anos
pai
achega
bd35608f17
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/modules/http_async_client/http_multi.c

+ 2 - 0
src/modules/http_async_client/http_multi.c

@@ -316,6 +316,8 @@ void reply_error(struct http_m_cell *cell)
 
 	cell->cb(reply, cell->param);
 
+	pkg_free(reply);
+
 	return;
 }