| 1384 | |
| 1385 | |
| 1386 | static int free_file_list( b_fil* file_list) |
| 1387 | { |
| 1388 | /******************************************************************** |
| 1389 | ** |
| 1390 | ** f r e e _ f i l e _ l i s t |
| 1391 | ** |
| 1392 | ********************************************************************* |
| 1393 | ** |
| 1394 | ** Functional description: |
| 1395 | ** |
| 1396 | ** free all the storage allocated for backup files structure |
| 1397 | ** |
| 1398 | ********************************************************************* |
| 1399 | */ |
| 1400 | |
| 1401 | b_fil* next_file = NULL; |
| 1402 | |
| 1403 | for (b_fil* file_ptr = file_list; file_ptr != NULL; file_ptr = next_file) |
| 1404 | { |
| 1405 | next_file = file_ptr->b_fil_next; |
| 1406 | free(file_ptr->b_fil_name); |
| 1407 | free(file_ptr); |
| 1408 | } |
| 1409 | |
| 1410 | return FB_SUCCESS; |
| 1411 | } |