Skip to content
Snippets Groups Projects
Commit 7797ba9c authored by Jorge Ramirez-Ortiz's avatar Jorge Ramirez-Ortiz
Browse files

apps_user: fix memory leak


memory passed to the ioctl must be deallocated on use if no longer
required

Signed-off-by: default avatarJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
parent 5da5cb32
No related branches found
No related tags found
No related merge requests found
...@@ -795,6 +795,7 @@ int remote_handle_invoke_domain(int domain, remote_handle handle, uint32_t sc, r ...@@ -795,6 +795,7 @@ int remote_handle_invoke_domain(int domain, remote_handle handle, uint32_t sc, r
FARF(HIGH,"debug:sc:%x,handle:%x\n",sc,handle); FARF(HIGH,"debug:sc:%x,handle:%x\n",sc,handle);
nErr = ioctl(dev, req, (unsigned long)&invoke); nErr = ioctl(dev, req, (unsigned long)&invoke);
bail: bail:
free(args);
return nErr; return nErr;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment