| commit | 24db985f602bbe21ee4d10147937ed897f28a555 | [log] [tgz] |
|---|---|---|
| author | Antonio Borneo <borneo.antonio@gmail.com> | Mon Aug 17 10:05:11 2020 +0200 |
| committer | Antonio Borneo <borneo.antonio@gmail.com> | Sat Sep 05 18:42:20 2020 +0100 |
| tree | 0829fa6f4c41653c76ba61d6b0549e27b3b4ff81 | |
| parent | a098a14eb53131871469a9c32b206b0dc55ef237 [diff] |
jtag: avoid checking for non NULL pointer to free it The function free() can be called with a NULL pointer as argument, no need to check the argument before. If the pointer is NULL, no operation is performed by free(). Remove the occurrences of pattern: if (ptr) free(ptr); Change-Id: I2938e333bd1eac5218bd67aefb9d8f373da017a8 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5810 Tested-by: jenkins