This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem Building Cygwin PostgreSQL


--- Jason Tishler <Jason.Tishler@dothill.com> wrote:
> Volker,
> 
> On Thu, Sep 21, 2000 at 05:02:11PM -0400, Jason Tishler wrote:
> > However, it does stackdump whenever I execute 'psql --help'.
> 
> The above was caused by the following in src/bin/psql/help.c:
> 
>     void
>     usage(void)
>     {
>         ...
>     #ifndef WIN32
>         if (pw)
>             free(pw);
>     #endif
>     }
> 
> Changing the above #ifndef to:
> 
>     #if !defined(WIN32) && !defined(__CYGWIN__)
> 
> fixed this niggling crash.
> 

Hmm...  This appears that it would potentially cause a memory leak.  What
happens if instead of this patch you initialize the pointer to NULL?

Cheers,

=====
--- <http://earniesystems.safeshopper.com> ---
   Earnie Boyd: <mailto:earnie_boyd@yahoo.com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
           __Minimalist GNU for Windows__
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]