Re: facing problem in accessing postgresql with c language normally

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hatem gamal elzanaty <hatem(at)softpro(dot)bz>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: facing problem in accessing postgresql with c language normally
Date: 2011-05-12 22:52:54
Message-ID: 12068.1305240774@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

hatem gamal elzanaty <hatem(at)softpro(dot)bz> writes:
> i'm new to postgresql programming in c language the following code give the following error beneath and no reason for
> that error :
> *** glibc detected *** ../../object/006/psql_test.bin: double free or
> corruption (top): 0x085dfea8 ***

You're PQclear'ing the same result twice in some code paths.

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message hatem gamal elzanaty 2011-05-16 02:13:05 how to write cgi script that is hosted under apache and accessing postgresql
Previous Message hatem gamal elzanaty 2011-05-12 21:44:58 facing problem in accessing postgresql with c language normally