Skip to content

Commit b7b2f55

Browse files
committed
Remove invalid free of pointer into argv array. Fixes #284.
Where the value has been overridden by the user the value pointer will point to memory within the argv array which should not be free'd.
1 parent ac566f5 commit b7b2f55

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

examples/unix/c11/z_pub.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ int main(int argc, char **argv) {
113113

114114
z_close(z_move(s));
115115

116-
if (value != default_value) {
117-
free(value);
118-
}
119116
return 0;
120117
}
121118
#else

0 commit comments

Comments
 (0)