Ignore:
Timestamp:
Sep 17, 2009, 3:45:24 AM (15 years ago)
Author:
Bruno Cornec
Message:

Removes some malloc_string static allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-filelist.c

    r2404 r2405  
    15071507    char *sz_filelist;
    15081508    char *exclude_paths = NULL;
    1509     char *tmp;
    15101509    int i;
    15111510    FILE *fout;
     
    15161515    char *tmp2 = NULL;
    15171516
    1518     malloc_string(tmp);
    1519     malloc_string(g_skeleton_filelist);
    15201517    mr_asprintf(sz_datefile,MONDO_CACHE"/difflevel.%d" , 0);
    15211518    if (!include_paths && !userdef_filelist) {
     
    15871584        log_msg(2, "Excluding paths = '%s'", exclude_paths);
    15881585        log_msg(2, "Generating skeleton filelist so that we can track our progress");
    1589         sprintf(g_skeleton_filelist, "%s/tmpfs/skeleton.txt", bkpinfo->tmpdir);
     1586        mr_asprintf(g_skeleton_filelist, "%s/tmpfs/skeleton.txt", bkpinfo->tmpdir);
    15901587        make_hole_for_file(g_skeleton_filelist);
    15911588        log_msg(4, "g_skeleton_entries = %ld", g_skeleton_entries);
     
    16311628    paranoid_free(sz_filelist);
    16321629    log_msg(2, "Freeing variables");
    1633     paranoid_free(tmp);
    1634     paranoid_free(g_skeleton_filelist);
     1630    mr_free(g_skeleton_filelist);
    16351631    log_msg(2, "Exiting");
    16361632    return (0);
Note: See TracChangeset for help on using the changeset viewer.