-
Notifications
You must be signed in to change notification settings - Fork 10
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
Use memory management functions #22
Draft
Fadila82
wants to merge
40
commits into
master
Choose a base branch
from
fk/free-memory
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 9 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
e2d1fff
fix import error
Fadila82 cbf3877
free errors
Fadila82 fac90ec
access: deallocate unused c struct
Fadila82 09d173d
free unused structs
Fadila82 c0e0c9c
fix codacy issues
Fadila82 a8da7bb
linting
Fadila82 7f74da2
remove duplicate code
Fadila82 80ccdc5
correct according to codacy checks
Fadila82 a19bcaa
update satellite address
Fadila82 dbbed15
argstypes replaced by argtypes
Fadila82 2fd62c8
do not free upload result
Fadila82 b015729
test
Fadila82 e3e6934
test
Fadila82 0711d1e
test
Fadila82 6547aa2
use unwrap_libuplink_result
Fadila82 ea0d41b
code clean-up
Fadila82 02721a7
code clean-up
Fadila82 493d6d6
code clean-up
Fadila82 d3c4f48
code clean-up
Fadila82 139c51a
code cleanup
Fadila82 2162e46
code cleanup
Fadila82 83607ab
code cleanup
Fadila82 12851fc
code cleanup
Fadila82 d083724
code cleanup
Fadila82 86e51ab
code cleanup
Fadila82 4f6c64f
add __del__ to free c memory
Fadila82 b8f98a2
add __del__ to free c memory
Fadila82 c30c650
typo
Fadila82 d4cbf8a
storj-sim for test
Fadila82 4021f41
storj-sim for test
Fadila82 30fc6ae
storj-sim for test
Fadila82 ed9b284
storj-sim for test
Fadila82 a9e605b
storj-sim for test
Fadila82 69035b7
storj-sim for test
Fadila82 9aba7aa
storj-sim for test
Fadila82 2a9579e
storj-sim for test
Fadila82 09e200d
storj-sim for test
Fadila82 888345e
ci back to original
Fadila82 a589059
code cleanup
Fadila82 90970c0
code cleanup
Fadila82 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is a pretty common pattern here. Also, though, it looks kind of fragile. Even if we are very careful this time, the next person to work on this code could easily mess something up.
It might be worth isolating this pattern to a few utility functions. Something like:
Then in this function you could replace this whole ending (everything from line 81 on) with:
The preexisting code in this repo is still pretty messy, though, so that could only help so much.