diff options
-rw-r--r-- | ot_stats.c | 2 | ||||
-rw-r--r-- | trackerlogic.c | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -18,7 +18,7 @@ | |||
18 | #include "ot_stats.h" | 18 | #include "ot_stats.h" |
19 | 19 | ||
20 | /* Converter function from memory to human readable hex strings */ | 20 | /* Converter function from memory to human readable hex strings */ |
21 | static char*to_hex(char*d,ot_byte*s){const char*m="0123456789ABCDEF";char*e=d+40;while(d<e){*d++=m[*s>>4];*d++=m[*s++&15];}*d=0;return d;} | 21 | static char*to_hex(char*d,ot_byte*s){char*m="0123456789ABCDEF";char *t=d;char*e=d+40;while(d<e){*d++=m[*s>>4];*d++=m[*s++&15];}*d=0;return t;} |
22 | 22 | ||
23 | typedef struct { size_t val; ot_torrent * torrent; } ot_record; | 23 | typedef struct { size_t val; ot_torrent * torrent; } ot_record; |
24 | 24 | ||
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 ) { | |||
414 | } | 414 | } |
415 | free( torrents_list->data ); | 415 | free( torrents_list->data ); |
416 | } | 416 | } |
417 | mutex_bucket_unlock( bucket ); | ||
417 | } | 418 | } |
418 | mutex_deinit( ); | 419 | mutex_deinit( ); |
419 | clean_deinit( ); | 420 | clean_deinit( ); |