Fossil SCM
Use fossil_path_free() instead of fossil_free() for names allocated (or not) by fossil_path_to_utf8().
Commit
a9fa7d3cfaff9f43d4bff11209dff51bd1ae55070cffa5067f924cdc53c56b9a
Parent
f1f7e27e0cdb894…
1 file changed
+2
-2
+2
-2
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -1327,14 +1327,14 @@ | ||
| 1327 | 1327 | char *zSubPath = file_case_preferred_name(zSubDir, &zPath[i+1]); |
| 1328 | 1328 | zResult = mprintf("%s/%s", zUtf8, zSubPath); |
| 1329 | 1329 | fossil_free(zSubPath); |
| 1330 | 1330 | fossil_free(zSubDir); |
| 1331 | 1331 | } |
| 1332 | - fossil_free(zUtf8); | |
| 1332 | + fossil_path_free(zUtf8); | |
| 1333 | 1333 | break; |
| 1334 | 1334 | } |
| 1335 | - fossil_free(zUtf8); | |
| 1335 | + fossil_path_free(zUtf8); | |
| 1336 | 1336 | } |
| 1337 | 1337 | closedir(d); |
| 1338 | 1338 | } |
| 1339 | 1339 | fossil_path_free(zNative); |
| 1340 | 1340 | if( zResult==0 ) zResult = fossil_strdup(zPath); |
| 1341 | 1341 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -1327,14 +1327,14 @@ | |
| 1327 | char *zSubPath = file_case_preferred_name(zSubDir, &zPath[i+1]); |
| 1328 | zResult = mprintf("%s/%s", zUtf8, zSubPath); |
| 1329 | fossil_free(zSubPath); |
| 1330 | fossil_free(zSubDir); |
| 1331 | } |
| 1332 | fossil_free(zUtf8); |
| 1333 | break; |
| 1334 | } |
| 1335 | fossil_free(zUtf8); |
| 1336 | } |
| 1337 | closedir(d); |
| 1338 | } |
| 1339 | fossil_path_free(zNative); |
| 1340 | if( zResult==0 ) zResult = fossil_strdup(zPath); |
| 1341 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -1327,14 +1327,14 @@ | |
| 1327 | char *zSubPath = file_case_preferred_name(zSubDir, &zPath[i+1]); |
| 1328 | zResult = mprintf("%s/%s", zUtf8, zSubPath); |
| 1329 | fossil_free(zSubPath); |
| 1330 | fossil_free(zSubDir); |
| 1331 | } |
| 1332 | fossil_path_free(zUtf8); |
| 1333 | break; |
| 1334 | } |
| 1335 | fossil_path_free(zUtf8); |
| 1336 | } |
| 1337 | closedir(d); |
| 1338 | } |
| 1339 | fossil_path_free(zNative); |
| 1340 | if( zResult==0 ) zResult = fossil_strdup(zPath); |
| 1341 |