all BUGFIX memory allocation error checks
diff --git a/src/session_p.h b/src/session_p.h
index 1166b49..e786fef 100644
--- a/src/session_p.h
+++ b/src/session_p.h
@@ -283,6 +283,8 @@
     void (*notif_clb)(struct nc_session *session, const struct nc_notif *notif);
 };
 
+void *nc_realloc(void *ptr, size_t size);
+
 NC_MSG_TYPE nc_send_msg(struct nc_session *session, struct lyd_node *op);
 
 int nc_timedlock(pthread_mutex_t *lock, int timeout, int *elapsed);