hooks.c: adding hooks for asprintf and vasprintf (both use malloc/realloc internally)

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Merge pull request #173 from rsalveti/hooks-adding-asprintf-vasprintf

hooks.c: adding hooks for asprintf and vasprintf (both use malloc/realloc internally)