]> granicus.if.org Git - transmission/commitdiff
fix another oops from yesterday's tr_buildPath() reworking
authorCharles Kerr <charles@transmissionbt.com>
Tue, 14 Oct 2008 17:27:59 +0000 (17:27 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Tue, 14 Oct 2008 17:27:59 +0000 (17:27 +0000)
libtransmission/platform.c

index bca1c64ce54452060a3cc2bb693006ad7c9516e4..d7a303dfb35e81ad8f6c9dbefb9af1ab0dd41187 100644 (file)
@@ -565,11 +565,11 @@ tr_getClutchDir( const tr_session * session UNUSED )
             {
                 char * path = tr_buildPath( l->data, "transmission", "web", NULL );
                 const int found = isClutchDir( path );
-                tr_free( path );
                 if( found ) {
                     s = path;
                     break;
                 }
+                tr_free( path );
             }
 
             tr_list_free( &candidates, tr_free );