bugGNU Gengetopt - Bugs: bug #59785, gengetopt-2.23: 2 * bad call to...

 
 

bug #59785: gengetopt-2.23: 2 * bad call to free ?

Submitter:  David Binderman <dcb314>
Submitted:  Wed 30 Dec 2020 07:36:52 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 30 Dec 2020 07:36:52 PM UTC, original submission:  

1.

gengetopt.cc:581:12: warning: 'void free(void*)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  581 |       free (n);
      |       ~~~~~^~~
gengetopt.cc:571:11: note: returned from 'void* operator new(std::size_t)'
  571 |   n = new gengetopt_option;
      |           ^~~~~~~~~~~~~~~~

2.

gengetopt.cc:589:12: warning: 'void free(void*)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  589 |       free (n);
      |       ~~~~~^~~
gengetopt.cc:571:11: note: returned from 'void* operator new(std::size_t)'
  571 |   n = new gengetopt_option;
      |           ^~~~~~~~~~~~~~~~

David Binderman <dcb314>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dcb314 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-03-05 gray_wolf Open/ClosedOpen Closed
    2024-03-05 gray_wolf StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code