remove explicit NULL check before free
Get series with b4
b4 am 993022606.810141433919692343.JavaMail.weblogic@epmlwas05bVersions newest first
- v1 Latest7 of 8 patches 1 replyIn review
7 of 8 patches are in this archive. The cover letter announces 8.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | tools:proc/ksym.c: remove explicit NULL check before freetools/ | +1 | 0 replies | |
| 2/8 | tools:proc/alloc.c: remove explicit NULL check before freetools/ | +1 | 0 replies | |
| 3/8 | tools:proc/readproc.c: remove explicit NULL check before freetools/ | +2 | 0 replies | |
| 4/8 | utils/ffsb_fc.c: remove explicit NULL check before freeutils/ | +1 | 0 replies | |
| 5/8 | network/ns-igmp_querier.c: remove explicit NULL check before freetestcases/ | +2 | 0 replies | |
| 6/8 | network/ns-mcast_receiver.c: remove explicit NULL check before freetestcases/ | +3 | 0 replies | |
| 7/8 | kernel/aio-stress.c: rempve explicit NULL check before freetestcases/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [LTP] [Patch 0/8] remove explicit NULL check before free
Hi,
Following patch set remove explicit NULL check before free(*ptr), because in free If ptr is NULL, no operation is performed. So no need of NULL check before free.
patches created with below coccinelle patch:-
@@
expression E;
@@
- if (E)
- free(E);
+ free(E);
Thanks
Maninder Singh
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list