浏览代码

tm: rest the pointer of hash table after free to avoid double free on false start

Daniel-Constantin Mierla 13 年之前
父节点
当前提交
7728464362
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/tm/h_table.c

+ 1 - 0
modules/tm/h_table.c

@@ -444,6 +444,7 @@ void free_hash_table(  )
 			}
 			}
 		}
 		}
 		shm_free(_tm_table);
 		shm_free(_tm_table);
+		_tm_table = 0;
 	}
 	}
 }
 }