Message-Id: <199711122340.SAA13067@delorie.com> From: "sl" To: "DJGPP mailing list" Date: Wed, 12 Nov 97 18:44:49 Reply-To: "sl" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: getcwd() Precedence: bulk Hi, I just thought of something. Since getcwd(NULL, 0) malloc()s its own variable. Does executing the following code pose a problem? (...) char result[MAX_PATH]; strcmp(result, getcwd(NULL, 0)); (...) Does this cause a pointer to be lost forever? Is a "free()" missing here on the result of getcwd()? Gili