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

we find a memory leak in fishhook function "prepend_rebindings",line 67 #48

Closed
rosen0510 opened this issue Feb 2, 2018 · 7 comments
Closed

Comments

@rosen0510
Copy link
Contributor

new_entry->rebindings = (struct rebinding *) malloc(sizeof(struct rebinding) * nel);
This malloc region didn't free in appropriate position

@dinhvh
Copy link

dinhvh commented Feb 2, 2018

In fishhook, entries are not removed.
Then, we keep them in memory forever.

@rosen0510
Copy link
Contributor Author

The "new_enry->rebindings" can't be accessed in anywhere after that function, why don't you free it ? It's there any special reason ?

@dinhvh
Copy link

dinhvh commented Feb 2, 2018

It can be accessed via new_entry.

@rosen0510
Copy link
Contributor Author

But in function "rebind_symbos_image" ,line 190, you freed the "rebinds_head" which is the same as "new_entry".

@dinhvh
Copy link

dinhvh commented Feb 2, 2018

Could you send a pull request to solve it then?

@rosen0510
Copy link
Contributor Author

ok

@megCanicalKb
Copy link
Contributor

06cfb58

@jobsyu jobsyu mentioned this issue Jun 18, 2020
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

No branches or pull requests

3 participants