psm/misleading-indentation.patch

18 lines
540 B
Diff
Raw Normal View History

2020-03-16 22:13:01 +08:00
diff --git a/psm_diags.c b/psm_diags.c
index 3e2df9d..3714cea 100644
--- a/psm_diags.c
+++ b/psm_diags.c
@@ -281,10 +281,11 @@ memcpy_check_size (memcpy_fn_t fn, int *p, int *f, size_t n)
2020-03-15 18:03:28 +08:00
if (USE_MALLOC) {
src = psmi_malloc(PSMI_EP_NONE, UNDEFINED, size);
dst = psmi_malloc(PSMI_EP_NONE, UNDEFINED, size);
- if (src == NULL || dst == NULL)
+ if (src == NULL || dst == NULL) {
if (src) psmi_free(src);
if (dst) psmi_free(dst);
return -1;
+ }
}
else {
2020-03-16 22:13:01 +08:00
void *src_p = NULL, *dst_p = NULL;