Index: uspace/app/hrctl/hrctl.c
===================================================================
--- uspace/app/hrctl/hrctl.c	(revision af73327ae2fd6fc284f0dc21012fdef8719501ee)
+++ uspace/app/hrctl/hrctl.c	(revision 52e405134318fe5971f2f42f4f6f0efb8a186b53)
@@ -174,4 +174,9 @@
 		vol_configs = realloc(vol_configs,
 		    (vol_count + 1) * sizeof(hr_config_t));
+		if (vol_configs == NULL) {
+			rc = ENOMEM;
+			goto error;
+		}
+
 		hr_config_t *cfg = vol_configs + vol_count;
 
