]> rtime.felk.cvut.cz Git - frescor/frsh.git/commit
Memory leak in shared objects removed.
authorDario Faggioli <faggioli@gandalf.sssup.it>
Thu, 26 Feb 2009 17:39:26 +0000 (18:39 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 1 Mar 2009 19:07:39 +0000 (20:07 +0100)
commit048236e4599a4317fd46ef823fa12d53f75d7267
treed821373fd0427b5549e4920d735d1038ba4df8e9
parent68587a410d9857183d2dc832c1273b5d13bd2315
Memory leak in shared objects removed.

The memory leak in write operation for protected critical sections has
been solved. Now the backup storage is an automatic variable for the
critical section invocation, and all the memory is allocated and freed
therein.

It is true that this cause much more overhead at each invocation, but
this is still better than undefinitely leaking memory, also because it
can be accounted for (if calculated) in blocking time (not implemented
yet).
fres/contract/fres_container.c
frsh_api/frsh_opaque_types.h
frsh_api/frsh_sharedobj.c