Skip to content

Commit

Permalink
sub-process: avoid leaking cmd
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Dec 18, 2024
1 parent f4f85c7 commit a38426e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sub-process.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void subprocess_stop(struct hashmap *hashmap, struct subprocess_entry *entry)
finish_command(&entry->process);

hashmap_remove(hashmap, &entry->ent, NULL);
FREE_AND_NULL(entry->cmd);

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / fuzz smoke test

sub-process.c:66:16: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / fuzz smoke test

sub-process.c:66:16: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-leaks (ubuntu-latest)

sub-process.c:66:28: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable-leaks (ubuntu-latest)

sub-process.c:66:28: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable-leaks (ubuntu-latest)

sub-process.c:66:28: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / almalinux-8 (almalinux:8)

sub-process.c:66:21: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-TEST-vars (ubuntu-20.04)

sub-process.c:66:21: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-TEST-vars (ubuntu-20.04)

sub-process.c:66:21: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc-default (ubuntu-latest)

sub-process.c:66:28: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc-default (ubuntu-latest)

sub-process.c:66:28: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-leaks (ubuntu-latest)

sub-process.c:66:28: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable (ubuntu-latest)

sub-process.c:66:16: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-musl (alpine)

sub-process.c:66:28: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc (ubuntu-20.04)

sub-process.c:66:21: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / almalinux-8 (almalinux:8)

sub-process.c:66:21: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc (ubuntu-20.04)

sub-process.c:66:21: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-musl (alpine)

sub-process.c:66:28: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-sha256 (ubuntu-latest)

sub-process.c:66:16: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / debian-11 (debian:11)

sub-process.c:66:21: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / pedantic (fedora)

sub-process.c:66:28: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-asan-ubsan (ubuntu-latest)

sub-process.c:66:16: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / debian-11 (debian:11)

sub-process.c:66:21: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable (ubuntu-latest)

sub-process.c:66:16: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-sha256 (ubuntu-latest)

sub-process.c:66:16: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux32 (i386/ubuntu:focal)

sub-process.c:66:21: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / pedantic (fedora)

sub-process.c:66:28: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-asan-ubsan (ubuntu-latest)

sub-process.c:66:16: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux32 (i386/ubuntu:focal)

sub-process.c:66:21: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / win build

sub-process.c:66:28: passing argument 1 of 'mi_free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 66 in sub-process.c

View workflow job for this annotation

GitHub Actions / win build

sub-process.c:66:28: passing argument 1 of 'mi_free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
}

static void subprocess_exit_handler(struct child_process *process)
Expand Down Expand Up @@ -150,6 +151,7 @@ int subprocess_start_strvec(struct hashmap *hashmap,
err = start_command(process);
if (err) {
error("cannot fork to run subprocess '%s'", entry->cmd);
FREE_AND_NULL(entry->cmd);

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / fuzz smoke test

sub-process.c:154:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / fuzz smoke test

sub-process.c:154:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-leaks (ubuntu-latest)

sub-process.c:154:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable-leaks (ubuntu-latest)

sub-process.c:154:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable-leaks (ubuntu-latest)

sub-process.c:154:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / almalinux-8 (almalinux:8)

sub-process.c:154:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-TEST-vars (ubuntu-20.04)

sub-process.c:154:22: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-TEST-vars (ubuntu-20.04)

sub-process.c:154:22: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc-default (ubuntu-latest)

sub-process.c:154:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc-default (ubuntu-latest)

sub-process.c:154:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-leaks (ubuntu-latest)

sub-process.c:154:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable (ubuntu-latest)

sub-process.c:154:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-musl (alpine)

sub-process.c:154:36: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc (ubuntu-20.04)

sub-process.c:154:22: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / almalinux-8 (almalinux:8)

sub-process.c:154:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc (ubuntu-20.04)

sub-process.c:154:22: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-musl (alpine)

sub-process.c:154:36: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-sha256 (ubuntu-latest)

sub-process.c:154:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / debian-11 (debian:11)

sub-process.c:154:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / pedantic (fedora)

sub-process.c:154:36: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-asan-ubsan (ubuntu-latest)

sub-process.c:154:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / debian-11 (debian:11)

sub-process.c:154:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable (ubuntu-latest)

sub-process.c:154:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-sha256 (ubuntu-latest)

sub-process.c:154:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux32 (i386/ubuntu:focal)

sub-process.c:154:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / pedantic (fedora)

sub-process.c:154:36: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-asan-ubsan (ubuntu-latest)

sub-process.c:154:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux32 (i386/ubuntu:focal)

sub-process.c:154:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / win build

sub-process.c:154:36: passing argument 1 of 'mi_free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 154 in sub-process.c

View workflow job for this annotation

GitHub Actions / win build

sub-process.c:154:36: passing argument 1 of 'mi_free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
return err;
}

Expand All @@ -158,6 +160,7 @@ int subprocess_start_strvec(struct hashmap *hashmap,
err = startfn(entry);
if (err) {
error("initialization for subprocess '%s' failed", entry->cmd);
FREE_AND_NULL(entry->cmd);

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / fuzz smoke test

sub-process.c:163:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / fuzz smoke test

sub-process.c:163:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-leaks (ubuntu-latest)

sub-process.c:163:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable-leaks (ubuntu-latest)

sub-process.c:163:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable-leaks (ubuntu-latest)

sub-process.c:163:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / almalinux-8 (almalinux:8)

sub-process.c:163:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-TEST-vars (ubuntu-20.04)

sub-process.c:163:22: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-TEST-vars (ubuntu-20.04)

sub-process.c:163:22: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc-default (ubuntu-latest)

sub-process.c:163:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc-default (ubuntu-latest)

sub-process.c:163:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-leaks (ubuntu-latest)

sub-process.c:163:36: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable (ubuntu-latest)

sub-process.c:163:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-musl (alpine)

sub-process.c:163:36: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc (ubuntu-20.04)

sub-process.c:163:22: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / almalinux-8 (almalinux:8)

sub-process.c:163:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-gcc (ubuntu-20.04)

sub-process.c:163:22: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-musl (alpine)

sub-process.c:163:36: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-sha256 (ubuntu-latest)

sub-process.c:163:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / debian-11 (debian:11)

sub-process.c:163:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / pedantic (fedora)

sub-process.c:163:36: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-asan-ubsan (ubuntu-latest)

sub-process.c:163:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / debian-11 (debian:11)

sub-process.c:163:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-reftable (ubuntu-latest)

sub-process.c:163:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-sha256 (ubuntu-latest)

sub-process.c:163:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux32 (i386/ubuntu:focal)

sub-process.c:163:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / pedantic (fedora)

sub-process.c:163:36: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux-asan-ubsan (ubuntu-latest)

sub-process.c:163:17: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / linux32 (i386/ubuntu:focal)

sub-process.c:163:22: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / win build

sub-process.c:163:36: passing argument 1 of 'mi_free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Check failure on line 163 in sub-process.c

View workflow job for this annotation

GitHub Actions / win build

sub-process.c:163:36: passing argument 1 of 'mi_free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
subprocess_stop(hashmap, entry);
return err;
}
Expand Down

0 comments on commit a38426e

Please sign in to comment.