mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Free correct value
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
92296aef1a
commit
a6a395487a
1 changed files with 5 additions and 3 deletions
|
@ -3728,15 +3728,17 @@ donames()
|
|||
}
|
||||
else
|
||||
{
|
||||
uptr p = b;
|
||||
|
||||
printf("Registered names are -\n");
|
||||
while (num-- > 0)
|
||||
{
|
||||
char buf[256];
|
||||
|
||||
memcpy(buf, &b[2], b[0]);
|
||||
buf[b[0]] = '\0';
|
||||
memcpy(buf, &p[2], p[0]);
|
||||
buf[p[0]] = '\0';
|
||||
printf("%s\n", buf);
|
||||
b += 2 + b[0];
|
||||
p += 2 + p[0];
|
||||
}
|
||||
}
|
||||
free(b);
|
||||
|
|
Loading…
Reference in a new issue