Skip to content

Commit

Permalink
Merge pull request #1484 from garlick/ns_leak
Browse files Browse the repository at this point in the history
modules/kvs: fix memory leak in namespace_create()
  • Loading branch information
chu11 authored Apr 24, 2018
2 parents 9649a59 + b9d616a commit 86d5b32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/kvs/kvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2594,6 +2594,8 @@ static int namespace_create (kvs_ctx_t *ctx, const char *namespace,
goto cleanup_remove_root;
}

json_decref (rootdir);
free (data);
return 0;

cleanup_remove_root:
Expand Down

0 comments on commit 86d5b32

Please sign in to comment.