]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Fixed a forgotten unlock and a messed up string pointer
authorerdgeist <>
Tue, 6 Nov 2007 12:20:32 +0000 (12:20 +0000)
committererdgeist <>
Tue, 6 Nov 2007 12:20:32 +0000 (12:20 +0000)
ot_stats.c
trackerlogic.c

index a1c85af6c15151557eabcf704da07ed43d9d4ae3..6857376afea5a6241ddf694a64dd5179b2d5b112 100644 (file)
@@ -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;
 
index 86ab51281bdf9cecbec661d6a5935bf6d09637c9..846b54e617efe9ab93a967d165de4729f5f98794 100644 (file)
@@ -414,6 +414,7 @@ void trackerlogic_deinit( void ) {
       }
       free( torrents_list->data );
     }
+    mutex_bucket_unlock( bucket );
   }
   mutex_deinit( );
   clean_deinit( );