mirror of
https://erdgeist.org/gitweb/opentracker
synced 2024-05-10 07:54:50 +00:00
Fixed a forgotten unlock and a messed up string pointer
This commit is contained in:
@ -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<e){*d++=m[*s>>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<e){*d++=m[*s>>4];*d++=m[*s++&15];}*d=0;return t;}
|
||||
|
||||
typedef struct { size_t val; ot_torrent * torrent; } ot_record;
|
||||
|
||||
|
@ -414,6 +414,7 @@ void trackerlogic_deinit( void ) {
|
||||
}
|
||||
free( torrents_list->data );
|
||||
}
|
||||
mutex_bucket_unlock( bucket );
|
||||
}
|
||||
mutex_deinit( );
|
||||
clean_deinit( );
|
||||
|
Reference in New Issue
Block a user