(main): Only free appellation string if it's from a remote object.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@54 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1995-01-13 17:57:48 +00:00
parent 8985ea6f8f
commit 64d5d02d47

View file

@ -1,17 +1,5 @@
#include "second-client.h"
#define IRIX_MALLOC_DEBUG 0
#define GNU_MALLOC_DEBUG 1
#if IRIX_MALLOC_DEBUG
#include <sys/types.h>
#include <malloc.h>
#endif
#if GNU_MALLOC_DEBUG
#include "/scratch/mccallum/malloc/malloc.h"
#endif
int main(int argc, char *argv[])
{
id server;
@ -19,18 +7,6 @@ int main(int argc, char *argv[])
id remote_array;
char namebuf[16];
#if IRIX_MALLOC_DEBUG
mallopt(M_DEBUG, 1);
#endif
#if GNU_MALLOC_DEBUG
{
int r = mcheck(NULL);
printf("%d\n", r);
assert(r==0);
}
#endif
printf("Looking up server object on localhost with name `secondserver'\n");
server = [Connection rootProxyAtName:"secondserver"];
printf("Found server.\n");
@ -58,7 +34,6 @@ int main(int argc, char *argv[])
{
a2 = [remote_array objectAtIndex:i];
s = [a2 appellation];
//mprobe(s);
printf("Server knows about client with appellation %s\n", s);
if ([a2 isProxy])
(*objc_free)((void*)s);