gresources: fix memory leak from libelf
Memory was leaking when allocating it inside libelf and losing the pointer to it (it was an automatic variable) when returning NULL from the get_elf function in some cases
Closes #3242 (closed)
Signed-off-by: Maxim Moskalets Maxim.Moskalets@kaspersky.com