Fix coverity-detected memory leak

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>