util: Pre-allocate buffer for ovs_lasterror_to_string().
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 14 Feb 2014 16:12:32 +0000 (08:12 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 14 Feb 2014 16:46:05 +0000 (08:46 -0800)
commit315ea327a63195d86082eecd502b830a3b2ece5e
tree57c63a95bc1a4f5a2fa1c6a46f6c487b89faade7
parentf4c340e1d996704ed81223217b172dbac3f045ac
util: Pre-allocate buffer for ovs_lasterror_to_string().

This lets us call ovs_lasterror_to_string() and not having
to do an extra call of LocalFree() on the returned string.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/entropy.c
lib/lockfile.c
lib/socket-util.c
lib/util.c
lib/util.h