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


Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>