Skip to content

XcursorXcFileLoad: plug memory leak in error paths

Alan Coopersmith requested to merge alanc/libxcursor:misc into master

Found by gcc analyzer:

file.c: In function ‘XcursorXcFileLoad’:
file.c:782:8: warning: leak of ‘fileHeader’ [CWE-401] [-Wanalyzer-malloc-leak]
  782 |     if (!images)
      |        ^

Fixes: 3b84b14b ("Initial revision")

Merge request reports

Loading