commit | 59a4305d932c0381b10b3cd3e58a5c09fd1b7969 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Apr 13 10:23:12 2016 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Apr 13 10:23:12 2016 +0200 |
tree | 03ffc5db08e8bd4c5fbccd227b43630b105fa1a2 | |
parent | da38416c132960963a5ddfcf835c5d29231241cd [diff] [blame] |
BUGFIX set freed value to NULL
diff --git a/src/netopeerguid.c b/src/netopeerguid.c index 5a63b17..1015959 100644 --- a/src/netopeerguid.c +++ b/src/netopeerguid.c
@@ -310,6 +310,7 @@ pthread_mutex_lock(&json_lock); json_object_put(*err_reply); pthread_mutex_unlock(&json_lock); + *err_reply = NULL; } if (pthread_setspecific(err_reply_key, err_reply) != 0) { ERROR("Cannot set thread-specific hash value.");