Message ID | 152347594505.18821.8817528606205630151.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | dd635fb |
Headers | show |
diff --git a/ndctl/dimm.c b/ndctl/dimm.c index f51f34bb28b6..1c168997105e 100644 --- a/ndctl/dimm.c +++ b/ndctl/dimm.c @@ -1080,11 +1080,9 @@ static int dimm_action(int argc, const char **argv, void *ctx, rc = action(single, &actx); } - if (actx.jdimms) { + if (actx.jdimms) util_display_json_array(actx.f_out, actx.jdimms, JSON_C_TO_STRING_PRETTY); - json_object_put(actx.jdimms); - } if (actx.f_out != stdout) fclose(actx.f_out);