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

fix: clib-package.c memory leaks #210

Merged
merged 5 commits into from Sep 8, 2020
Merged

fix: clib-package.c memory leaks #210

merged 5 commits into from Sep 8, 2020

Conversation

Isty001
Copy link
Member

@Isty001 Isty001 commented Sep 8, 2020

This patch fixes leaks reported by Valgrind in clib-package.c.

cd test/package
make valgrind

src/common/clib-package.c Outdated Show resolved Hide resolved
@@ -77,7 +77,7 @@ main() {
it("should manage the search cache") {
char *cached_search;

clib_cache_delete_search();
clib_cache_delete_search();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah whoops, #209 should have formatted tests too. I forgot we have .c tests now :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#211 :)

@jwerle
Copy link
Member

jwerle commented Sep 8, 2020

Looks good from me with the exception of stephens comments!

@Isty001 Isty001 merged commit 34f9066 into master Sep 8, 2020
@Isty001 Isty001 mentioned this pull request Sep 8, 2020
@Isty001 Isty001 deleted the package-leaks branch September 8, 2020 14:20
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.

None yet

3 participants