提交 c0f0ba08 编写于 作者: P Pengzhou Tang 提交者: Tang Pengzhou

Coverity: Cleanup minor memory leak issue

上级 4bddeeff
......@@ -2348,6 +2348,7 @@ setup_cdb_schema(FILE *cmdfd)
}
free(lines);
free(path);
}
}
......
......@@ -392,6 +392,7 @@ CreateReplicationSlot(PGconn *conn, const char *slot_name, const char *plugin,
if (replication_slot_already_exists_error(res))
{
destroyPQExpBuffer(query);
PQclear(res);
return true;
}
......
......@@ -12643,6 +12643,7 @@ dumpTransform(Archive *fout, TransformInfo *transform)
destroyPQExpBuffer(defqry);
destroyPQExpBuffer(delqry);
destroyPQExpBuffer(labelq);
destroyPQExpBuffer(transformargs);
}
......@@ -14135,6 +14136,7 @@ dumpAgg(Archive *fout, AggInfo *agginfo)
if (aggfullsig)
free(aggfullsig);
free(query);
free(aggsig);
return;
......@@ -16093,6 +16095,7 @@ dumpExternal(Archive *fout, TableInfo *tbinfo, PQExpBuffer q, PQExpBuffer delq)
destroyPQExpBuffer(query);
free(qualrelname);
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册