ggreer / the_silver_searcher

A code-searching tool similar to ack, but faster.

Home Page:http://geoff.greer.fm/ag/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

memory leak in function 'parse_options'

JoraGevorgyan opened this issue · comments

commented

The memory leak is reported by a static analyzer tool developed at CAST
the allocated memory will left without free when the function fails to allocated another one, because in function 'ag_malloc' it checks if memory is not allocated and exits whole program

Leaks are of no importance for short running programs. They can actually improve performance as the OS reclaims the resources anyways.