| 1361 | } |
| 1362 | |
| 1363 | void pool_diff_free_filepair(struct mem_pool *pool, |
| 1364 | struct diff_filepair *p) |
| 1365 | { |
| 1366 | if (!pool) { |
| 1367 | diff_free_filepair(p); |
| 1368 | return; |
| 1369 | } |
| 1370 | |
| 1371 | /* |
| 1372 | * Similar to diff_free_filepair() but only frees the data from the |
| 1373 | * filespecs; not the filespecs or the filepair which were |
| 1374 | * allocated from the pool. |
| 1375 | */ |
| 1376 | free_filespec_data(p->one); |
| 1377 | free_filespec_data(p->two); |
| 1378 | } |
| 1379 | |
| 1380 | void diffcore_rename_extended(struct diff_options *options, |
| 1381 | struct mem_pool *pool, |
no test coverage detected