mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-08 05:38:04 +02:00
xcms/LRGB: don't double-free property_return
property_return was free'd before and in the case the conditional is true, the call to XcmsGetProperty failed which means that property_return wasn't set so there is no need to free it again. Double free of pointer "property_return" in call to "free" Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Erkki Seppälä <erkki.seppala@vincit.fi> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com>
This commit is contained in:
parent
50f4107811
commit
c37e278993
1 changed files with 0 additions and 1 deletions
|
|
@ -573,7 +573,6 @@ LINEAR_RGB_InitSCCData(
|
|||
if (CorrectAtom == None ||
|
||||
!_XcmsGetProperty (dpy, RootWindow(dpy, screenNumber), CorrectAtom,
|
||||
&format_return, &nitems, &nbytes_return, &property_return)) {
|
||||
Xfree ((char *)property_return);
|
||||
goto FreeSCCData;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue