Backend: Keep fixing memleak / file descriptor leak

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>