Browse Source

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

Federico Cabiddu 8 years ago
parent
commit
bd35608f17
1 changed files with 2 additions and 0 deletions
  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;
 }