summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2014-01-01 21:36:27 +0530
committerVijay Bellur <vbellur@redhat.com>2014-01-01 23:22:22 -0800
commit2ce8918759e9676a54791848fd2ac85f48a05016 (patch)
treed4763b6e9d071db998e67e5c17d7dfb2101f335f /libglusterfs/src
parent2401384fbc882c02319881166b299f8e88c7ab55 (diff)
libglusterfs: Add missing goto in eh_new()
Change-Id: I64bbd8d5d919e78286a0521b62ca75f22ad296fa BUG: 795419 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/6623 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-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 82baa521aec..e89df09c935 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;