<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Nov 28, 2024 at 10:24 AM Anastasia Belova <<a href="mailto:abelova@astralinux.ru">abelova@astralinux.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Just a friendly reminder.<br>
<br></blockquote><div><br></div><div>Merged, thanks.<br></div><div><br></div><div>Sorry for the delay.<br></div><div><br></div><div>Frediano</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
12.11.2024 16:59, Anastasia Belova пишет:<br>
> free dynamic memory pointed by data before returning<br>
> from function.<br>
><br>
> Found by Linux Verification Center (<a href="http://linuxtesting.org" rel="noreferrer" target="_blank">linuxtesting.org</a>) with SVACE.<br>
><br>
> Signed-off-by: Anastasia Belova <<a href="mailto:abelova@astralinux.ru" target="_blank">abelova@astralinux.ru</a>><br>
> ---<br>
> usbredirtestclient/usbredirtestclient.c | 1 +<br>
> 1 file changed, 1 insertion(+)<br>
><br>
> diff --git a/usbredirtestclient/usbredirtestclient.c b/usbredirtestclient/usbredirtestclient.c<br>
> index 62b72e8..6da87ec 100644<br>
> --- a/usbredirtestclient/usbredirtestclient.c<br>
> +++ b/usbredirtestclient/usbredirtestclient.c<br>
> @@ -409,6 +409,7 @@ static int usbredirtestclient_cmdline_ctrl(void)<br>
> }<br>
> if (!arg || *endptr != '\0') {<br>
> printf("Missing or invalid data byte(s)\n");<br>
> + free(data);<br>
> return 0;<br>
> }<br>
> }<br>
</blockquote></div></div>