Revision 5d5c9930 linux-user/elfload.c
b/linux-user/elfload.c | ||
---|---|---|
1546 | 1546 |
} |
1547 | 1547 |
} |
1548 | 1548 |
|
1549 |
/* Attempt to free the storage associated with the local symbols |
|
1550 |
that we threw away. Whether or not this has any effect on the |
|
1551 |
memory allocation depends on the malloc implementation and how |
|
1552 |
many symbols we managed to discard. */ |
|
1549 | 1553 |
syms = realloc(syms, nsyms * sizeof(*syms)); |
1554 |
if (syms == NULL) { |
|
1555 |
free(s); |
|
1556 |
free(strings); |
|
1557 |
return; |
|
1558 |
} |
|
1559 |
|
|
1550 | 1560 |
qsort(syms, nsyms, sizeof(*syms), symcmp); |
1551 | 1561 |
|
1552 | 1562 |
s->disas_num_syms = nsyms; |
Also available in: Unified diff