Skip to content

Commit 771f7c4

Browse files
authored
Update class_table.c (#310)
Trivial memory leak fix.
1 parent 47d02a8 commit 771f7c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

class_table.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ int objc_getClassList(Class *buffer, int bufferLen)
517517
{
518518
buffer[count++] = next;
519519
}
520+
free(e);
520521
return count;
521522
}
522523
Class *objc_copyClassList(unsigned int *outCount)

0 commit comments

Comments
 (0)