mirror of
https://github.com/brunoos/luasec.git
synced 2024-12-27 04:58:20 +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() )
|
assert( peer:dohandshake() )
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
peer:getpeercertificate():extensions()
|
||||||
|
|
||||||
print(peer:receive("*l"))
|
print(peer:receive("*l"))
|
||||||
peer:close()
|
peer:close()
|
||||||
end
|
end
|
||||||
|
@ -372,6 +372,7 @@ int meth_extensions(lua_State* L)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sk_GENERAL_NAME_free(values);
|
||||||
lua_pop(L, 1); /* ret[oid] */
|
lua_pop(L, 1); /* ret[oid] */
|
||||||
i++; /* Next extension */
|
i++; /* Next extension */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user