vogel - 2013-11-23

hello,

today i used cppcheck to check if there has memory leak or errors, and the infomations are:

[demo/gateway/main.c:199]: (error) Possible null pointer dereference: pDev
[demo/handler/objects.c:130]: (error) Returning/dereferencing 'pDevice' after it is deallocated / released
[demo/object/bacfile.c:526]: (error) Write operation on a file that was opened only for reading.
[demo/router/ipmodule.c:66]: (error) Memory leak: ip_data.buff
[demo/router/msgqueue.c:82] -> [demo/router/msgqueue.c:86]: (error) Possible null pointer dereference: data - otherwise it is redundant to check it against null.
[ports/bdk-atxx4-mstp/bootloader/main.c:347]: (error) Possible null pointer dereference: funcptr
[ports/bsd/bip-init.c:55]: (error) Uninitialized variable: addr_ptr
[ports/rtos32/bip-init.c:261]: (error) Invalid number of character (() when these macros are defined: ''.
[ports/rtos32/bip-init.c:261]: (error) Invalid number of character (() when these macros are defined: 'AUTO_IP'.
[ports/rtos32/bip-init.c:261]: (error) Invalid number of character (() when these macros are defined: 'BACDL_ETHERNET'.
[ports/rtos32/bip-init.c:261]: (error) Invalid number of character (() when these macros are defined: 'DHCP'.
[ports/rtos32/bip-init.c:261]: (error) Invalid number of character (() when these macros are defined: 'HOST'.
[ports/rtos32/bip-init.c:261]: (error) Invalid number of character (() when these macros are defined: 'RTUSB_VER'.
[ports/rtos32/bip-init.c:261]: (error) Invalid number of character (() when these macros are defined: 'USE_INADDR'.
[svn2cl.xsl:74]: (error) No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported