Skip to content

Commit 59158d0

Browse files
mikaoPradare
authored andcommitted
bin_xtr_dyldcache: Missing R_FREE in a fail path (radareorg#7200)
1 parent fb72dbb commit 59158d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libr/bin/p/bin_xtr_dyldcache.c

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ static RBinXtrData *extract(RBin *bin, int idx) {
9494
hdr = MACH0_(get_hdr_from_bytes) (lib->b);
9595
if (!hdr) {
9696
free (lib);
97+
R_FREE (metadata);
9798
free (hdr);
9899
return NULL;
99100
}

0 commit comments

Comments
 (0)