summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/set.c8
-rw-r--r--src/shared/strv.c4
2 files changed, 0 insertions, 12 deletions
diff --git a/src/shared/set.c b/src/shared/set.c
index cd910d70ab..111d53bb36 100644
--- a/src/shared/set.c
+++ b/src/shared/set.c
@@ -38,11 +38,7 @@ void set_free(Set* s) {
}
void set_freep(Set **s) {
- if (!s)
- return;
-
set_free(*s);
- *s = NULL;
}
void set_free_free(Set *s) {
@@ -50,11 +46,7 @@ void set_free_free(Set *s) {
}
void set_free_freep(Set **s) {
- if (!*s)
- return;
-
set_free_free(*s);
- *s = NULL;
}
int set_ensure_allocated(Set **s, hash_func_t hash_func, compare_func_t compare_func) {
diff --git a/src/shared/strv.c b/src/shared/strv.c
index 60c4762572..117382ed80 100644
--- a/src/shared/strv.c
+++ b/src/shared/strv.c
@@ -65,11 +65,7 @@ void strv_free(char **l) {
}
void strv_freep(char ***l) {
- if (!l)
- return;
-
strv_free(*l);
- *l = NULL;
}
char **strv_copy(char **l) {