• Dridi Boukelmoune's avatar
    Use FREE_OBJ for VEV · 4edaa283
    Dridi Boukelmoune authored
    This was actually done with a Coccinelle patch after finding plain
    free() calls out of tree:
    
        $ cat >free_obj.cocci <<EOF
        @@
        expression obj, objp, magic;
        @@
    
        (
        TAKE_OBJ_NOTNULL(obj, objp, magic);
        |
        CAST_OBJ_NOTNULL(obj, objp, magic);
        |
        CHECK_OBJ_NOTNULL(obj, magic);
        |
        CHECK_OBJ_ORNULL(obj, magic);
        |
        CHECK_OBJ(obj, magic);
        )
        ...
        - free(obj);
        + FREE_OBJ(obj);
        $ spatch --dir . --in-place --sp-file free_obj.cocci
    
    Asking again, could we consider keeping Coccinelle patches around?
    4edaa283
Name
Last commit
Last update
..
Makefile.am Loading commit data...
binary_heap.c Loading commit data...
flint.lnt Loading commit data...
flint.sh Loading commit data...
vas.c Loading commit data...
vav.c Loading commit data...
vcli_proto.c Loading commit data...
vcli_serve.c Loading commit data...
vct.c Loading commit data...
verrno.c Loading commit data...
version.c Loading commit data...
vev.c Loading commit data...
vfil.c Loading commit data...
vfl.c Loading commit data...
vin.c Loading commit data...
vjsn.c Loading commit data...
vlu.c Loading commit data...
vmb.c Loading commit data...
vnum.c Loading commit data...
vpf.c Loading commit data...
vre.c Loading commit data...
vrnd.c Loading commit data...
vsa.c Loading commit data...
vsb.c Loading commit data...
vsha256.c Loading commit data...
vss.c Loading commit data...
vsub.c Loading commit data...
vtcp.c Loading commit data...
vte.c Loading commit data...
vtim.c Loading commit data...
vus.c Loading commit data...