diff --git a/src/modules/kvs/kvs.c b/src/modules/kvs/kvs.c index 2c113177bb2e..684b3b0fac3a 100644 --- a/src/modules/kvs/kvs.c +++ b/src/modules/kvs/kvs.c @@ -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: