mirror of
https://github.com/brunoos/luasec.git
synced 2024-11-08 06:28:26 +01:00
Merge pull request #125 from horazont/feature/fix-memleak
Fix memory leak in meth_extensions
This commit is contained in:
commit
ef342a7cda
@ -23,6 +23,8 @@ while true do
|
||||
assert( peer:dohandshake() )
|
||||
--]]
|
||||
|
||||
peer:getpeercertificate():extensions()
|
||||
|
||||
print(peer:receive("*l"))
|
||||
peer:close()
|
||||
end
|
||||
|
@ -372,6 +372,7 @@ int meth_extensions(lua_State* L)
|
||||
break;
|
||||
}
|
||||
}
|
||||
sk_GENERAL_NAME_free(values);
|
||||
lua_pop(L, 1); /* ret[oid] */
|
||||
i++; /* Next extension */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user