Fix coverity issue:
1223002 Uninitialized scalar variable.
Fix coverity issue:
1223001 Resource leak.
Fix coverity issue:
1223000 Resource leak.
POOL_CONNECTION_POOL *backend)
{
char *string = NULL;
- int len;
+ int len = 0;
int i;
POOL_STATUS ret = POOL_CONTINUE;
POOL_CONNECTION_POOL *backend)
{
char *string = NULL;
- int len;
+ int len = 0;
int i;
for (i=0;i<NUM_BACKENDS;i++)
{
pid1 = pid;
len1 = len;
+ if(condition1)
+ free(condition1);
condition1 = strdup(condition);
}
}
if (status < 0)
{
pool_error("ParameterDescription: error while reading message length");
+ free(p1);
return POOL_END;
}
p = pool_read2(CONNECTION(backend, i), len);
if (p == NULL)
+ {
+ free(p1);
return POOL_END;
-
+ }
if (len != len1)
{
pool_debug("ParameterDescription: length does not match between backends master(%d) %d th backend(%d) kind:(%c)",
}
free(p1);
-
return POOL_CONTINUE;
}