summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/event-history.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/event-history.c')
-rw-r--r--libglusterfs/src/event-history.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/event-history.c b/libglusterfs/src/event-history.c
index 82baa521a..e89df09c9 100644
--- a/libglusterfs/src/event-history.c
+++ b/libglusterfs/src/event-history.c
@@ -29,6 +29,7 @@ eh_new (size_t buffer_size, gf_boolean_t use_buffer_once,
gf_log ("", GF_LOG_ERROR, "allocating circular buffer failed");
GF_FREE (history);
history = NULL;
+ goto out;
}
history->buffer = buffer;