libxrdp: fix memory leak
@@ -847,6 +847,7 @@ libxrdp_set_pointer(struct xrdp_session *session, int cache_idx)
LLOGLN(10, ("libxrdp_send_pointer: fastpath"));
if (xrdp_rdp_init_fastpath((struct xrdp_rdp *)session->rdp, s) != 0)
{
+ free_stream(s);
return 1;
}
}
