Changeset 2423


Ignore:
Timestamp:
Sep 25, 2009, 4:38:40 PM (9 years ago)
Author:
bruno
Message:

Fix an issue in is_this_device_mounted (string freed before last usage)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-devices.c

    r2401 r2423  
    11461146    }
    11471147    mr_free(device_with_tab);
    1148     mr_free(device_with_space);
    11491148    paranoid_pclose(fin);
    11501149    mr_asprintf(&tmp, "%s | grep -E \"^%s\" > /dev/null 2> /dev/null", SWAPLIST_COMMAND, device_with_space);
     1150    mr_free(device_with_space);
    11511151    log_msg(4, "tmp (command) = '%s'", tmp);
    11521152    if (!system(tmp)) {
Note: See TracChangeset for help on using the changeset viewer.