Skip to content
Snippets Groups Projects
Commit 660e8821 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Fix memory leak in case of recvfrom(2) failure in Lua sockets

Thanks Alexey Antipovsky

Closes #1448
parent 9acdd25f
No related merge requests found
......@@ -859,6 +859,7 @@ lbox_socket_recvfrom(struct lua_State *L)
(struct sockaddr*)&fa, &len);
if (res < 0) {
free(buf);
lua_pushnil(L);
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment