~profzoom/wmaker/next

Viewing all changes in revision 3755.

  • Committer: Carlos R. Mafra
  • Author(s): Christophe CURIS
  • Date: 2021-05-18 16:49:17 UTC
  • Revision ID: git-v1:e828e1c074732c9f670dd621baf1fae59261040f
Fix use-after-free error in wIconStore reported by Coverity

The function always returns the filename where the icon have been saved,
but in the case where the save operation failed we would free the memory
for that file name, yet still return this pointer like if it were valid.

Took opportunity to remove redundant free(path) which is done a couple
lines later, because redundancy is a source of problem for code
maintenance.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: