examples/ip_pipeline: fix memory allocation check