fix two more bugs

svn:r452
This commit is contained in:
Roger Dingledine
2003-09-13 21:53:38 +00:00
parent 0cc888cdb3
commit 6f41b06b4b
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -553,8 +553,9 @@ static void catch(int the_signal) {
break;
case SIGCHLD:
please_reap_children = 1;
break;
default:
log(LOG_ERR,"Caught signal that we can't handle??");
log(LOG_ERR,"Caught signal %d that we can't handle??", the_signal);
}
#endif /* signal stuff */
}
+1 -1
View File
@@ -7,7 +7,7 @@
#include "orconfig.h"
//#define USE_TLS
#define USE_TLS
#include <stdio.h>
#include <stdlib.h>
+3 -1
View File
@@ -188,7 +188,8 @@ void directory_free(directory_t *directory)
for (i = 0; i < directory->n_routers; ++i)
routerinfo_free(directory->routers[i]);
free(directory->routers);
/* XXX are we leaking directory->software_versions here? */
if(directory->software_versions)
free(directory->software_versions);
free(directory);
}
@@ -697,6 +698,7 @@ static int router_get_list_from_string_tok(char **s, directory_t **dest,
*dest = (directory_t *)tor_malloc(sizeof(directory_t));
(*dest)->routers = rarray;
(*dest)->n_routers = rarray_len;
(*dest)->software_versions = NULL;
return 0;
}