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

modules/kvs: fix memory leak in namespace_create() #1484

Merged
merged 1 commit into from
Apr 24, 2018

Conversation

garlick
Copy link
Member

@garlick garlick commented Apr 24, 2018

Problem: valgrind test fails when private KVS namespace
is made part of job setup.

Looks like some memory allocated in namespace_create()
that was freed in the error path, was not freed in
the non-error path. Fix that.

Fixes #1483

Problem: valgrind test fails when private KVS namespace
is made part of job setup.

Looks like some memory allocated in namespace_create()
that was freed in the error path, was not freed in
the non-error path.  Fix that.

Fixes flux-framework#1483
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 79.038% when pulling b9d616a on garlick:ns_leak into 9649a59 on flux-framework:master.

@codecov-io
Copy link

Codecov Report

Merging #1484 into master will decrease coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1484      +/-   ##
==========================================
- Coverage   78.77%   78.73%   -0.04%     
==========================================
  Files         164      164              
  Lines       30355    30358       +3     
==========================================
- Hits        23911    23903       -8     
- Misses       6444     6455      +11
Impacted Files Coverage Δ
src/modules/kvs/kvs.c 65.87% <100%> (+0.08%) ⬆️
src/modules/connector-local/local.c 72.95% <0%> (-1.44%) ⬇️
src/common/libflux/mrpc.c 85.49% <0%> (-1.18%) ⬇️
src/cmd/flux-event.c 67.74% <0%> (-1.08%) ⬇️
src/broker/modservice.c 80.58% <0%> (-0.98%) ⬇️
src/cmd/flux-module.c 85.06% <0%> (-0.31%) ⬇️
src/common/libflux/message.c 81.6% <0%> (+0.11%) ⬆️
src/common/libutil/base64.c 95.77% <0%> (+0.7%) ⬆️

@garlick garlick requested a review from chu11 April 24, 2018 14:43
@chu11
Copy link
Member

chu11 commented Apr 24, 2018

LGTM, sorry for missing this obvious path.

@chu11 chu11 merged commit 86d5b32 into flux-framework:master Apr 24, 2018
@garlick
Copy link
Member Author

garlick commented Apr 24, 2018

No worries, thanks!

@garlick garlick deleted the ns_leak branch February 25, 2020 17: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.

4 participants