Skip to content

gt68xx: fix use-after-free and two mem leaks

Wolfram Sang requested to merge wsakernel/backends:gt68xx/proper_free into master

The config file argument needs to be freed when a device is not set. That was missed for two occasions. The other occasion was freeing it unconditionally leading to a use-after-free for the regular use case.

Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980311

This is the least intrusive fix. The code really wants to be refactored. Tested with a Mustek 1200 UB Plus.

Merge request reports