sprintf() of char* value, no memory allocation?

Started by The Hermit Hackerabout 27 years ago2 messages
#1The Hermit Hacker
scrappy@hub.org

executor/nodeTee.c, line 174? I can't find anywhere where space was
allocated...?

Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org

#2Bruce Momjian
maillist@candle.pha.pa.us
In reply to: The Hermit Hacker (#1)
Re: [HACKERS] sprintf() of char* value, no memory allocation?

executor/nodeTee.c, line 174? I can't find anywhere where space was
allocated...?

Yep. However, I think Tee may never be used as a node by any query, so
it may not be a problem. Search the archives. You may find
someone(Vadim?) saying that Tee is never used.

Still, should be cleaned up.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026