浏览代码

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

Federico Cabiddu 8 年之前
父节点
当前提交
bd35608f17
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;
 }