Thread (4 messages) 4 messages, 2 authors, 2016-01-27

Re: [PATCH] no need to test for NULL when freeing

From: Thomas Monjalon <hidden>
Date: 2016-01-21 11:31:21

2016-01-21 12:23, David Marchand:
free() already handles NULL pointer.

Signed-off-by: David Marchand <redacted>
---
 app/test/test_devargs.c                            |  3 +-
 app/test/test_link_bonding.c                       |  6 ++--
 app/test/test_pci.c                                |  3 +-
 app/test/test_ring.c                               | 36 ++++++++--------------
 drivers/net/xenvirt/rte_eth_xenvirt.c              |  6 ++--
 drivers/net/xenvirt/rte_mempool_gntalloc.c         |  9 ++----
 examples/ip_pipeline/cpu_core_map.c                |  3 +-
 .../pipeline/pipeline_flow_classification_be.c     |  6 ++--
 examples/vhost_xen/vhost_monitor.c                 |  3 +-
 examples/vhost_xen/xenstore_parse.c                | 33 +++++++-------------
 lib/librte_eal/common/eal_common_devargs.c         |  3 +-
 lib/librte_eal/linuxapp/eal/eal_memory.c           |  3 +-
 lib/librte_ether/rte_ethdev.c                      |  6 ++--
 lib/librte_kvargs/rte_kvargs.c                     |  4 +--
 14 files changed, 41 insertions(+), 83 deletions(-)
Have you used a coccinelle script?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help