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:
parent
ee1982b083
commit
8d2a684ba1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user