summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/src/glfs-mgmt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/api/src/glfs-mgmt.c b/api/src/glfs-mgmt.c
index 86a186e581b..94e660795db 100644
--- a/api/src/glfs-mgmt.c
+++ b/api/src/glfs-mgmt.c
@@ -377,6 +377,12 @@ glfs_get_volume_info (struct glfs *fs)
ctx = fs->ctx;
frame = create_frame (THIS, ctx->pool);
+ if (!frame) {
+ gf_log ("glfs", GF_LOG_ERROR, "failed to create the frame");
+ ret = -1;
+ goto out;
+ }
+
frame->local = &args;
__yawn ((&args));