提交 e27ec070 编写于 作者: H Hubert Zhang

Coverity: Resource leak

Fix some resource leak.
上级 c565e988
......@@ -616,6 +616,8 @@ cdbCopyEndInternal(CdbCopy *c, char *abort_msg,
break;
}
}
if (buffer)
PQfreemem(buffer);
}
/* in SREH mode, check if this seg rejected (how many) rows */
......
......@@ -4891,6 +4891,7 @@ getTypeStorageOptions(Archive *fout, int *numTypes)
{
numTypes = 0;
tstorageoptions = (TypeStorageOptions *) pg_malloc(0);
destroyPQExpBuffer(query);
return tstorageoptions;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册