Index: uspace/lib/c/generic/loader.c
===================================================================
--- uspace/lib/c/generic/loader.c	(revision 664af7080d443cca0efb84c002b3d440ca6f67c1)
+++ uspace/lib/c/generic/loader.c	(revision 6e84dc3382e50a88e708b27b26e81ecced3b74f9)
@@ -160,4 +160,5 @@
 	int rc = async_data_write_start(ldr->phone_id, (void *) pa, pa_len);
 	if (rc != EOK) {
+		free(pa);
 		async_wait_for(req, NULL);
 		return rc;
