浏览代码

domain: fix memory leak on domain reload (related to domain_attr table, struct domain_list)

- fix memory leak on domain reload, reported by Mack Hendricks
- related to domain_attr table, structure domain_list
Henning Westerholt 6 年之前
父节点
当前提交
f50177003c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/modules/domain/hash.c

+ 1 - 0
src/modules/domain/hash.c

@@ -204,6 +204,7 @@ void hash_table_free(struct domain_list **hash_table)
 			shm_free(ap);
 			ap = next_ap;
 		}
+		shm_free(np);
 		np = np->next;
 	}