libglusterfs : fix newly introduced coverity defect

CID: 1396060
updates: bz#789278

Change-Id: Ia25aa9a4ca7505e747aa92bb3ae81415da7d19d1
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
This commit is contained in:
Sunny Kumar 2018-10-11 12:20:10 +05:30 committed by Amar Tumballi
parent 7bf95631b5
commit f678946261

View File

@ -2294,8 +2294,6 @@ _gf_log_eh(const char *function, const char *fmt, ...)
}
ret = eh_save_history(this->history, logline);
if (ret < 0)
GF_FREE(logline);
out:
GF_FREE(logline);