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>
This commit is contained in:
Sunny Kumar 2018-10-24 18:09:09 +05:30 committed by Amar Tumballi
parent ee1982b083
commit 8d2a684ba1

View File

@ -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;
}