summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/logging.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c
index 55cf2e97d2c..efaa44da653 100644
--- a/libglusterfs/src/logging.c
+++ b/libglusterfs/src/logging.c
@@ -2304,6 +2304,8 @@ _gf_log_eh (const char *function, const char *fmt, ...)
strcat (msg, str2);
ret = eh_save_history (this->history, msg);
+ if (ret < 0)
+ GF_FREE (msg);
out:
GF_FREE (str1);