Files
heimdal/lib/base
Stefan Metzmacher 1e5cb64569 heimbase-atomics: fix heim_base_atomic_* on AIX
The API looks like this on AIX:

  typedef int *atomic_p;

  int fetch_and_add(atomic_p addr, int value);

The strange thing is that the xlc compiler ignores missing arguments by
default. (It warns but doesn't fail to compile)
As a result the value argument was just uninitialized memory,
which means that the ref_cnt variable of struct heim_base,
gets unpredictable values during heim_retain() and heim_release(),
resulting in memory leaks.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2022-12-22 22:12:52 +11:00
..
2012-06-20 19:32:08 -05:00
2022-01-14 12:01:33 -06:00
2022-11-01 16:10:57 -05:00
2022-10-02 22:46:37 -05:00
2012-06-20 19:32:08 -05:00
2012-06-20 19:32:08 -05:00