]> git.ipfire.org Git - pakfire.git/commit
packages: Copy strings when returning arrays
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Aug 2023 16:30:34 +0000 (16:30 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Aug 2023 16:30:34 +0000 (16:30 +0000)
commit10211c67288561cc37928218e47dc542419ed147
treed5eee9e44f6bf5fa780bcad486addd0876280c26
parent652f2a99887f48e03d64da5aa5a7d7d22b702b13
packages: Copy strings when returning arrays

This way, the return value will be owned by the caller which also has
the responsibility to clean it up.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/include/pakfire/package.h
src/libpakfire/include/pakfire/util.h
src/libpakfire/package.c
src/libpakfire/util.c