Ticket #2053 (new defect) — at Initial Version

Opened 15 years ago

Last modified 15 years ago

lib-vfs-mc-vfs-vfs.c-mc_symlink-missing-g_free

Reported by: vit_r Owned by:
Priority: major Milestone: 4.7.1
Component: mc-vfs Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description

when a try to bring this old fashion style

    mpath = ...
    if (mpath != NULL) {
    vfs = vfs_get_class (mpath);
    result = vfs->setctl ? (...) : 0;
    g_free (mpath);
    return result;
    } else return -1;

to currently (for mc) looking like

    mpath = ...
    if (mpath == NULL)
	return -1;
	
    vfs = vfs_get_class (mpath);
    result = vfs->setctl ? (...) : 0;
    g_free (mpath);
    return result;

this missing g_free() popped up



Change History

Note: See TracTickets for help on using tickets.