forked from auracaster/openocd
server: free strduped port numbers
Although the leak is negligible, the clean heap on exit will ease valgrind testing. Change-Id: I3a7a9c8e8dc7557aa51d0b9caa244537e5e7007d Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/4410 Tested-by: jenkins
This commit is contained in:
@@ -242,3 +242,7 @@ int jsp_register_commands(struct command_context *cmd_ctx)
|
||||
return register_commands(cmd_ctx, NULL, jsp_command_handlers);
|
||||
}
|
||||
|
||||
void jsp_service_free(void)
|
||||
{
|
||||
free(jsp_port);
|
||||
}
|
||||
|
||||
@@ -13,5 +13,6 @@ struct jsp_service {
|
||||
|
||||
int jsp_init(struct or1k_jtag *jtag_info, char *banner);
|
||||
int jsp_register_commands(struct command_context *cmd_ctx);
|
||||
void jsp_service_free(void);
|
||||
|
||||
#endif /* OPENOCD_TARGET_OPENRISC_JSP_SERVER_H */
|
||||
|
||||
Reference in New Issue
Block a user