[Freeciv-tickets] [freeciv] #45910: oblig_hard_req_reg() for zero action results

Back to archive index
OSDN Ticket System norep****@osdn*****
Sun Dec 4 13:24:55 JST 2022


#45910: oblig_hard_req_reg() for zero action results

  Open Date: 2022-10-17 21:07
Last Update: 2022-12-04 06:24

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/45910
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45910

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-12-04 06:24 Updated by: cazfi
 * Status Update from Open to Closed
 * Resolution Update from Accepted to Fixed


---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: cazfi
          Type: Bugs
        Status: Closed
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: General
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

Ticket details:

Originally detected by valgrind as a memory leak: One of the oblig_hard_req_reg() calls has no target action results (list is immediately terminated by ACTRES_NONE). With zero users to begin with, nobody reduces its reference count and thus code to free it is never triggered.
It's likely that a more serious bug than tiny memory leak lurks there - certainly it was not created to be registered to no action.
It's the one about war with tile owner OR tile having no city.


-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/45910
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45910



More information about the Freeciv-tickets mailing list
Back to archive index