fix error and mem leak found by cppcheck by GregAujay · Pull Request #5 · LuaDist/lua · GitHub
Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

fix error and mem leak found by cppcheck#5

Merged
drahosp merged 1 commit into
LuaDist:masterfrom
GregAujay:master
Dec 1, 2013
Merged

fix error and mem leak found by cppcheck#5
drahosp merged 1 commit into
LuaDist:masterfrom
GregAujay:master

Conversation

@GregAujay

Copy link
Copy Markdown

I ran cppcheck on luaDist/lua and it found these errors:
loadlib_rel.c 202 resourceLeak error Resource leak: fd
loadlib_rel.c 193 uninitvar error Uninitialized variable: n

First one was in the #else and second one in the #elif defined(APPLE)

drahosp added a commit that referenced this pull request Dec 1, 2013
fix error and mem leak found by cppcheck
@drahosp drahosp merged commit 8264a49 into LuaDist:master Dec 1, 2013
@drahosp

drahosp commented Dec 1, 2013

Copy link
Copy Markdown
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants