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
merged 1 commit into from
Dec 1, 2013

Conversation

GregAujay
Copy link

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
Copy link
Member

drahosp commented Dec 1, 2013

Ah, good catch. Thank You !

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