--- a/src/server/object.c Fri Dec 30 17:50:05 2011 +0100 +++ b/src/server/object.c Sun Jan 08 15:46:47 2012 +0100 @@ -59,14 +59,16 @@ dtable *l = object_get_dtable(obj, dt); // allocate space for the new directive - l->dirs = realloc(l->dirs, (l->ndir+1)*sizeof(void*)); + //l->dirs = realloc(l->dirs, (l->ndir+1)*sizeof(void*)); /* TODO: aus irgend einem Grund funktioniert realloc nicht. warum?? */ directive **drs = malloc((l->ndir+1)*sizeof(void*)); for(int i=0;i<l->ndir;i++) { drs[i] = l->dirs[i]; } - free(l->dirs); + if(l->dirs != NULL) { + free(l->dirs); + } l->dirs = drs; // add directive