Skip to content

Commit

Permalink
dyld: fix a leak
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jul 29, 2023
1 parent 655fdac commit d9158f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libdyld/dyld.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,7 @@ dyld_clear(struct dyld *d)
VEC_FOREACH(it, d->dynobjs) {
free((void *)it->name.data); /* discard const */
}
VEC_FREE(d->dynobjs);
#endif
memset(d, 0, sizeof(*d));
}
Expand Down

0 comments on commit d9158f5

Please sign in to comment.