1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-03-12 03:00:09 +01:00

Fix memory leak on error

This commit is contained in:
Konstantin Belousov 2010-03-08 18:48:27 +02:00
parent 4b3ca293bf
commit c1b1c10cfc

View file

@ -55,6 +55,7 @@ tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
free(freep); free(freep);
return (rc); return (rc);
} }
free(freep);
return (-1); return (-1);
} }