Fixed utils directory breakage from r398648

git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/1.8@398748 f38db490-d61c-443f-a65b-d21fe96a405b
Fixed utils directory breakage from r398748, this time with extra hate.

git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/1.8@398752 f38db490-d61c-443f-a65b-d21fe96a405b
Fix incorrect usages of ast_realloc().

There are several locations in the code base where this is done:
buf = ast_realloc(buf, new_size);

This is going to leak the original buf contents if the realloc fails.

Review: https://reviewboard.asterisk.org/r/2832/


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/1.8@398757 f38db490-d61c-443f-a65b-d21fe96a405b