🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Bryan Boreham Wed, 02 Aug 1989 19:59
Bug fix for add-file.
#223
Author: Bryan Boreham
Date: Wed, 02 Aug 1989 19:59
32 lines
1334 bytes
diff -c dbxread.c~ dbxread.c
*** dbxread.c~  Thu Jul 20 09:04:42 1989
--- dbxread.c   Wed Aug  2 20:44:03 1989
***************
*** 3427,3433 ****
      perror_with_name (name);

    old_chain = make_cleanup (close, desc);
!   make_cleanup (free_current_contents, &name);

    READ_FILE_HEADERS (desc, name);

--- 3427,3437 ----
      perror_with_name (name);

    old_chain = make_cleanup (close, desc);
!
! /* Change by Bryan Boreham, Kewill, Wed Aug  2 20:43:19 1989.
!    name points into the middle of arg_string, so we don't want
!    to free it here.    */
! /*  make_cleanup (free_current_contents, &name); */

    READ_FILE_HEADERS (desc, name);


The comment should explain the problem; the memory in question is
usually owned by command_line_input and shouldn't be free'd anyway.

ET++ dynamically-linked applcations are now de-buggable; thanks to all
the MCC people who pointed me at add-file.

Bryan.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads