openrc/src
Sam James 0525de4f18 librc-depend: fix -Wmismatched-dealloc
Despite this being a 'deptree', it's actually
xmalloc'd in the same function (rc_deptree_update),
and so should be free'd, not rc_deptree_free'd,
as rc_deptree_load* wasn't used to allocate it.

```
[71/213] Compiling C object src/librc/librc.so.1.p/librc-depend.c.o
../src/librc/librc-depend.c: In function ‘rc_deptree_update’:
../src/librc/librc-depend.c:1077:9: warning: ‘rc_deptree_free’ called on pointer returned from a mismatched allocation function [-Wmismatched-dealloc]
 1077 |         rc_deptree_free(deptree);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/shared/misc.h:29,
                 from ../src/librc/librc.h:57,
                 from ../src/librc/librc-depend.c:21:
In function ‘xmalloc’,
    inlined from ‘rc_deptree_update’ at ../src/librc/librc-depend.c:775:12:
../src/shared/helpers.h:64:23: note: returned from ‘malloc’
   64 |         void *value = malloc(size);
      |                       ^~~~~~~~~~~~
```

This fixes #563.
2022-12-07 11:35:16 -06:00
..
checkpath checkpath: fix memory leak 2022-05-08 14:56:26 -05:00
einfo multiple spelling and typo fixes 2022-04-30 21:32:32 -05:00
fstabinfo multiple spelling and typo fixes 2022-04-30 21:32:32 -05:00
halt migrate fully to meson build system 2022-04-06 10:51:55 -05:00
is_newer_than migrate fully to meson build system 2022-04-06 10:51:55 -05:00
is_older_than migrate fully to meson build system 2022-04-06 10:51:55 -05:00
kill_all migrate fully to meson build system 2022-04-06 10:51:55 -05:00
libeinfo multiple spelling and typo fixes 2022-04-30 21:32:32 -05:00
librc librc-depend: fix -Wmismatched-dealloc 2022-12-07 11:35:16 -06:00
mark_service migrate fully to meson build system 2022-04-06 10:51:55 -05:00
mountinfo migrate fully to meson build system 2022-04-06 10:51:55 -05:00
on_ac_power migrate fully to meson build system 2022-04-06 10:51:55 -05:00
openrc openrc: fix help messages 2022-07-21 03:53:42 -04:00
openrc-init migrate fully to meson build system 2022-04-06 10:51:55 -05:00
openrc-run multiple spelling and typo fixes 2022-04-30 21:32:32 -05:00
openrc-shutdown multiple spelling and typo fixes 2022-04-30 21:32:32 -05:00
poweroff migrate fully to meson build system 2022-04-06 10:51:55 -05:00
rc-abort migrate fully to meson build system 2022-04-06 10:51:55 -05:00
rc-depend migrate fully to meson build system 2022-04-06 10:51:55 -05:00
rc-service migrate fully to meson build system 2022-04-06 10:51:55 -05:00
rc-sstat multiple spelling and typo fixes 2022-04-30 21:32:32 -05:00
rc-status rc-status: fix mismatched alloc 2022-05-08 14:56:26 -05:00
rc-update rc-update: style fixes 2022-05-08 14:56:26 -05:00
reboot migrate fully to meson build system 2022-04-06 10:51:55 -05:00
seedrng seedrng: initialize seed_dir 2022-04-20 20:49:47 -05:00
service migrate fully to meson build system 2022-04-06 10:51:55 -05:00
shared shared/misc.c: free env_allow if returning early from env_filter 2022-05-08 14:56:26 -05:00
shell_var migrate fully to meson build system 2022-04-06 10:51:55 -05:00
shutdown migrate fully to meson build system 2022-04-06 10:51:55 -05:00
start-stop-daemon start-stop-daemon, supervise-daemon: set autogroup nicelevel 2022-09-06 17:26:22 -05:00
supervise-daemon start-stop-daemon, supervise-daemon: set autogroup nicelevel 2022-09-06 17:26:22 -05:00
swclock migrate fully to meson build system 2022-04-06 10:51:55 -05:00
value migrate fully to meson build system 2022-04-06 10:51:55 -05:00
meson.build migrate fully to meson build system 2022-04-06 10:51:55 -05:00