From 8d2a684ba102c5b2f558ac9bee819500da94421e Mon Sep 17 00:00:00 2001 From: Sunny Kumar Date: Wed, 24 Oct 2018 18:09:09 +0530 Subject: geo-rep : fix high sev coverity isuue This patch fixes CID: 1382374: USE_AFTER_FREE. Change-Id: If408f52ee291312fb83095126ebd6bb79ae95e26 updates: bz#789278 Signed-off-by: Sunny Kumar --- geo-replication/src/gsyncd.c | 1 - 1 file changed, 1 deletion(-) (limited to 'geo-replication') diff --git a/geo-replication/src/gsyncd.c b/geo-replication/src/gsyncd.c index 77af6628d14..cf0e76f69c4 100644 --- a/geo-replication/src/gsyncd.c +++ b/geo-replication/src/gsyncd.c @@ -47,7 +47,6 @@ duplexpand(void **buf, size_t tsiz, size_t *len) size_t osiz = tsiz * *len; char *p = realloc(*buf, osiz << 1); if (!p) { - free(*buf); return -1; } -- cgit