grelminar / asss (http://asss.yi.org/asss/)

A Small Subspace Server - main repository

Clone this repository (size: 5.5 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/grelminar/asss/
commit 1113: 06dca3f28ff0
parent 1112: 4ab1b640c24d
branch: pyadv
Fixed a double free when unloading pymod.
d1st0rt
3 months ago

Changed (Δ173 bytes):

raw changeset »

scripts/pymod-process.py (0 lines added, 6 lines removed)

Up to file-list scripts/pymod-process.py:

@@ -1124,15 +1124,11 @@ def finish_pyint():
1124
1124
	out.write("""
1125
1125
local HashTable *pyint_ints;
1126
1126
local HashTable *pyint_impl_ints;
1127
local HashTable *pyadv_advs;
1128
local HashTable *pyadv_impl_advs;
1129
1127
1130
1128
local void init_py_interfaces(void)
1131
1129
{
1132
1130
	pyint_ints = HashAlloc();
1133
1131
	pyint_impl_ints = HashAlloc();
1134
	pyadv_advs = HashAlloc();
1135
	pyadv_impl_advs = HashAlloc();
1136
1132
""")
1137
1133
	for line in pyint_init_code:
1138
1134
		out.write(line)
@@ -1143,8 +1139,6 @@ local void deinit_py_interfaces(void)
1143
1139
{
1144
1140
""")
1145
1141
	out.write("""\
1146
	HashFree(pyadv_advs);
1147
	HashFree(pyadv_impl_advs);
1148
1142
	HashFree(pyint_ints);
1149
1143
	HashFree(pyint_impl_ints);
1150
1144
}