]> git.e2factory.org Git - e2factory.git/commitdiff
Plug small memory leak in case of poll error
authorTobias Ulmer <tu@emlix.com>
Tue, 21 Jan 2014 18:52:49 +0000 (19:52 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/le2lib.c

index d00070889fbacf5f053c04f954abffe94766f466..2d1e3c6e3554a485d72aaa55ee308bd774579729 100644 (file)
@@ -337,6 +337,7 @@ poll_fd(lua_State *lua)
        if (f < 0) {
                lua_pushboolean(lua, 0);
                lua_pushstring(lua, strerror(errno));
+               free(fds);
                return 2;
        }