diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2018-10-24 18:09:09 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-10-25 05:34:27 +0000 |
commit | 8d2a684ba102c5b2f558ac9bee819500da94421e (patch) | |
tree | 8472c08c3596f25e144e2883f286e5c2a0d1a99f /geo-replication | |
parent | ee1982b083c06ddaebfc4b6da8a0827f3b7c24a9 (diff) |
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 <sunkumar@redhat.com>
Diffstat (limited to 'geo-replication')
-rw-r--r-- | geo-replication/src/gsyncd.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |