--- libaitrpc/src/lists.c 2011/09/01 15:29:39 1.4.2.5 +++ libaitrpc/src/lists.c 2011/09/03 13:18:26 1.4.2.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: lists.c,v 1.4.2.5 2011/09/01 15:29:39 misho Exp $ +* $Id: lists.c,v 1.4.2.6 2011/09/03 13:18:26 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -409,6 +409,9 @@ rpc_srv_unregisterBLOB(rpc_srv_t * __restrict srv, uin b = rpc_srv_getBLOB(srv, var); if (!b) /* not found element for unregister */ return 0; + /* if BLOB is unmapped force to unmap object */ + if (b->blob_data) + rpc_srv_blobUnmap(b); pthread_mutex_lock(&srv->srv_blob.mtx); if (srv->srv_blob.blobs == b) { /* if is 1st element */