projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leak while running Dijkstra's algorithm.
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
aab250a
..
9518676
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-110,6
+110,8
@@
static struct option const long_options[] = {
{NULL, 0, NULL, 0}
};
+mutex_t mutex;
+
#ifdef HAVE_MINGW
static struct WSAData wsa_state;
CRITICAL_SECTION mutex;
@@
-383,6
+385,8
@@
int main(int argc, char **argv) {
g_argv = argv;
+ mutex_create(&mutex);
+ mutex_lock(&mutex);
init_events();
init_configuration(&config_tree);