Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potentially unsafe code #102

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

NickNevzorov
Copy link

I don't know why it's done this way, but if the user does this:

Connection := TZConnection.Create(nil);
Query := TZQuery.Create(nil);
Query.Connection := Connection;
...
Connection.free; // First free
Query.free // Second free

In the case of try .. except the error will be hidden, which may work without consequences, or may lead to an app crash randomly

@NickNevzorov
Copy link
Author

Hi

Looking this please. I have found another bug ( NickNevzorov#5 ), but cannot create a pull request while this opened

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant