We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 026472c commit 5ffa1c7Copy full SHA for 5ffa1c7
1 file changed
src/librc/librc.c
@@ -947,9 +947,11 @@ rc_services_in_runlevel(const char *runlevel)
947
948
#ifdef RC_PKG_INITDIR
949
TAILQ_CONCAT(list, pkg, entries);
950
+ rc_stringlist_free(pkg);
951
#endif
952
#ifdef RC_LOCAL_INITDIR
953
TAILQ_CONCAT(list, local, entries);
954
+ rc_stringlist_free(local);
955
956
return list;
957
}
@@ -1007,6 +1009,7 @@ rc_services_in_state(RC_SERVICE state)
1007
1009
services = ls_dir(dir, LS_INITD);
1008
1010
if (services) {
1011
TAILQ_CONCAT(list, services, entries);
1012
+ rc_stringlist_free(services);
1013
1014
1015
rc_stringlist_free(dirs);
0 commit comments