From 793e1e8457857aea7c06a555a84a7bdf916f3db6 Mon Sep 17 00:00:00 2001 From: Houjun Tang Date: Tue, 18 Jul 2023 10:03:58 -0700 Subject: [PATCH] Fix unnecessary memory allocation --- src/api/pdc_obj/pdc_obj.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/pdc_obj/pdc_obj.c b/src/api/pdc_obj/pdc_obj.c index d402782f9..f16a71275 100644 --- a/src/api/pdc_obj/pdc_obj.c +++ b/src/api/pdc_obj/pdc_obj.c @@ -1237,9 +1237,9 @@ PDCobj_get_info(pdcid_t obj_id) tmp = PDC_obj_get_info(obj_id); - ret_value = PDC_CALLOC(struct pdc_obj_info); - if (!ret_value) - PGOTO_ERROR(NULL, "failed to allocate memory"); + /* ret_value = PDC_CALLOC(struct pdc_obj_info); */ + /* if (!ret_value) */ + /* PGOTO_ERROR(NULL, "failed to allocate memory"); */ ret_value = tmp->obj_info_pub;