summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/stack.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/stack.h b/libglusterfs/src/stack.h
index 15b24ea08d9..e7c1cbd152d 100644
--- a/libglusterfs/src/stack.h
+++ b/libglusterfs/src/stack.h
@@ -224,6 +224,10 @@ copy_frame (call_frame_t *frame)
}
newstack = (void *) CALLOC (1, sizeof (*newstack));
+ if (newstack == NULL) {
+ return NULL;
+ }
+
oldstack = frame->root;
newstack->uid = oldstack->uid;