winpr: fix error malloc size.
libwinpr: fix memory leak in case realloc() failed.
libwinpr: fix memory leak in case TimerQueue is NULL.
libwinpr: fix memory leak in case of error.
core: fix memory leak in case of error out.
core: fix memory leak in case of error out.
core: fix memory leak in case of error out.
codec: fix memory leak in case of realloc() failed.
client-common: fix memory leak in case of error out.
serial: fix memory leak in case of error out.
libwinpr: minor fix print uninitialized variable.
serial: fix memory leak in case of error out.
core: fix memory leak in case of error out.
Merge pull request #1814 from zhangzl2013/memory

Fix potential memory leak.