Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill "if" before free, and useless cast of free argument.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 28 Jan 2011 15:27:37 +0000 (16:27 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 9 Nov 2011 14:16:02 +0000 (15:16 +0100)
commit85c342932c60954a7e1c9430742bfff2b28c31a8
tree10498e71c75a8becf0498f0c8f9a05d004a71d76
parentf13ab1807d381f0bf36027a9042e046dc4735dd5
Kill "if" before free, and useless cast of free argument.

free(NULL) is a no-op, there is no need to test the given pointer
before call.
The same argument stands for xbt_free, xbt_dict_free, xbt_dynar_free,
and xbt_strbuff_free.
53 files changed:
examples/gras/replay/xbt_workload.c
examples/msg/actions/actions.c
include/xbt/sysdep.h
src/amok/PeerManagement/peermanagement.c
src/bindings/lua/lua_stub_generator.c
src/gras/DataDesc/cbps.c
src/gras/DataDesc/ddt_create.c
src/gras/Transport/transport_plugin_sg.c
src/gras/Transport/transport_plugin_tcp.c
src/gras/Virtu/process.c
src/gras/Virtu/sg_emul.c
src/gras/gras.c
src/include/surf/surf_resource.h
src/instr/jedule/jedule_platform.c
src/mc/memory_map.c
src/msg/msg_actions.c
src/rngstreams/RngStream.c
src/simdag/sd_global.c
src/simdag/sd_task.c
src/simix/smx_context_base.c
src/simix/smx_process.c
src/smpi/smpi_bench.c
src/surf/cpu.c
src/surf/cpu_im.c
src/surf/cpu_ti.c
src/surf/network.c
src/surf/network_gtnets.c
src/surf/network_im.c
src/surf/network_ns3.c
src/surf/surf.c
src/surf/surf_routing.c
src/surf/surf_routing_dijkstra.c
src/surf/surfxml_parse.c
src/surf/workstation_ptask_L07.c
src/xbt/backtrace_linux.c
src/xbt/dict_cursor.c
src/xbt/dynar.c
src/xbt/ex.c
src/xbt/graphxml_parse.c
src/xbt/lib.c
src/xbt/log.c
src/xbt/mmalloc/mm_legacy.c
src/xbt/xbt_os_thread.c
src/xbt/xbt_peer.c
src/xbt/xbt_replay_trace_reader.c
src/xbt/xbt_strbuff.c
tools/gras/stub_generator.c
tools/tesh/run_context.c
tools/tesh/tesh.c
win32_test_app/src/TBuffer.c
win32_test_app/src/TStream.c
win32_test_app/src/TTestCaseContext.c
win32_test_app/src/TThreadDynarray.c