From: | Souheila Hechaichi <Souheila(dot)Hechaichi(at)asg(dot)com> |
---|---|
To: | "'pgsql-bugs(at)postgresql(dot)org'" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Postgres resources not released after call PQclear |
Date: | 2014-04-07 16:03:42 |
Message-ID: | 693DE4B55EAFC549AD60C5439067053A05B30214F9@usnapexchmbx01.asg.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hello;
I observe that when the row number about a SELECT SQL request is equal to zero, the function PQclear does not release the allocated resources and a memory leak are detected into my application.
To reproduce the problem I do the following steps:
- To detect the memory leak I have enabled them via the Microsoft procedure .
Include the following files
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
And I call the function _CrtDumpMemoryLeaks() at the end of my application, to display all the memory leak.
- I call the PQexec function to execute the SQL request and after it end I call PQclear to release the allocated ressouces.
Can you give me a help about this bug?
Best regards;
[cid:image001(dot)png(at)01CF528A(dot)DD5651E0]<http://www.asg.com/>
Souheila Hechaichi, Software Engineer
souheila(dot)hechaichi(at)asg(dot)com<mailto:souheila(dot)hechaichi(at)asg(dot)com> | 33.164.868386
www.asg.com<http://www.asg.com/> |
[cid:image002(dot)png(at)01CF528A(dot)DD5651E0]<https://www.facebook.com/ASGSoftwareSolutions>[cid:image003(dot)png(at)01CF528A(dot)DD5651E0]<https://twitter.com/#!/asgsoftware>[cid:image004(dot)png(at)01CF528A(dot)DD5651E0]<https://www.linkedin.com/company/asg>[cid:image005(dot)png(at)01CF528A(dot)DD5651E0]<https://www.youtube.com/asgtech>
Registergericht/Registered Office: Amtsgericht München HRA 72107
Geschäftsführer/General Manager: Arthur Allen
Umsatzsteuernummer/VAT No.: DE 192144187
P Please consider the environment before printing this email.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2014-04-07 16:34:36 | Re: Postgres resources not released after call PQclear |
Previous Message | Tom Lane | 2014-04-07 15:39:01 | Re: Postgres 9.2.8 crash sporadically on Windows |