From ae3c2376709c6e90875d49197935dbc4d5ba2105 Mon Sep 17 00:00:00 2001 From: Geoff Martin Date: Wed, 6 Dec 2023 14:54:05 +0000 Subject: [PATCH] Remove invalid free of value pointer into argv array. (#290) --- examples/unix/c11/z_pub.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/unix/c11/z_pub.c b/examples/unix/c11/z_pub.c index f6f9e6bd5..5da6db5d8 100644 --- a/examples/unix/c11/z_pub.c +++ b/examples/unix/c11/z_pub.c @@ -113,9 +113,6 @@ int main(int argc, char **argv) { z_close(z_move(s)); - if (value != default_value) { - free(value); - } return 0; } #else