HAWQ-574. Modify the wrong judge during dispatch_free_result

Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/07a0cdda
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/07a0cdda
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/07a0cdda

Branch: refs/heads/HAWQ-546
Commit: 07a0cdda32d70ac6274e7b82d6f6e55f5c11e274
Parents: 3d7d071
Author: Lili Ma <ictmal...@gmail.com>
Authored: Wed Mar 23 13:28:52 2016 +0800
Committer: Oleksandr Diachenko <odiache...@pivotal.io>
Committed: Wed Mar 30 17:23:28 2016 -0700

----------------------------------------------------------------------
 src/backend/cdb/dispatcher.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/07a0cdda/src/backend/cdb/dispatcher.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/dispatcher.c b/src/backend/cdb/dispatcher.c
index e3c5e94..f355b05 100644
--- a/src/backend/cdb/dispatcher.c
+++ b/src/backend/cdb/dispatcher.c
@@ -1570,7 +1570,7 @@ dispatch_free_result(DispatchDataResult *result)
                result->errbuf.data = NULL;
        }
 
-       if (!result->result)
+       if (result->result)
        {
          for (int i = 0; i <= result->numresults; i++){
            PQclear(result->result[i]);

Reply via email to