From 4ccbc9bd0eae8c604d570ce22654fc79822bd9dc Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 6 Nov 2007 12:20:32 +0000 Subject: [PATCH] Fixed a forgotten unlock and a messed up string pointer --- ot_stats.c | 2 +- trackerlogic.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ot_stats.c b/ot_stats.c index a1c85af..6857376 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -18,7 +18,7 @@ #include "ot_stats.h" /* Converter function from memory to human readable hex strings */ -static char*to_hex(char*d,ot_byte*s){const char*m="0123456789ABCDEF";char*e=d+40;while(d>4];*d++=m[*s++&15];}*d=0;return d;} +static char*to_hex(char*d,ot_byte*s){char*m="0123456789ABCDEF";char *t=d;char*e=d+40;while(d>4];*d++=m[*s++&15];}*d=0;return t;} typedef struct { size_t val; ot_torrent * torrent; } ot_record; diff --git a/trackerlogic.c b/trackerlogic.c index 86ab512..846b54e 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -414,6 +414,7 @@ void trackerlogic_deinit( void ) { } free( torrents_list->data ); } + mutex_bucket_unlock( bucket ); } mutex_deinit( ); clean_deinit( );