summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-10-20 16:28:33 +0200
committerDavid Sommerseth <davids@redhat.com>2009-10-20 16:28:33 +0200
commitb6999e142dd512135ab989e60db89289c6a1eeb9 (patch)
treedbc4cd220f5f4808a01c6ec6d2a7f0b9a011b5d4
parentb55551208634aebb49c7ef858abcce5c323af80f (diff)
downloadrteval-b6999e142dd512135ab989e60db89289c6a1eeb9.tar.gz
rteval-b6999e142dd512135ab989e60db89289c6a1eeb9.tar.xz
rteval-b6999e142dd512135ab989e60db89289c6a1eeb9.zip
Fixed a memory leak
-rw-r--r--server/parser/pgsql.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/parser/pgsql.c b/server/parser/pgsql.c
index 067ead9..84fb7d9 100644
--- a/server/parser/pgsql.c
+++ b/server/parser/pgsql.c
@@ -756,9 +756,11 @@ int db_register_cyclictest(dbconn *dbc, xsltStylesheet *xslt, xmlDoc *summaryxml
cyclicdata++;
}
eFree_values(dbdata);
- xmlFreeDoc(cyclic_d);
cyclicdata = 1;
}
+ if( cyclic_d ) {
+ xmlFreeDoc(cyclic_d);
+ }
}
// Report error if not enough cyclictest data is registered.