uniba-swt / swtbahn-cli

A client-server command line interface for the SWTbahn.
GNU General Public License v3.0
7 stars 3 forks source link

Likely Memory Leak in handler_driver is_forward_driving function #89

Closed BLuedtke closed 1 year ago

BLuedtke commented 1 year ago

Branch: game In the source file handler_driver, in function is_forward_driving, on line 134, a bidib query is made: t_bidib_id_list_query rev_query = bidib_get_connected_reversers();. The struct in question holds a member of type char**. Bidib documentation says that the caller shall free the memory allocated. This is not done (afaics). Same thing with the query on line 142/143 in the same function.