...
This non-compliant code example sets str
to reference either dynamically allocated memory or a statically allocated string literal depending on the value of argc
. In either case, str}
is passed as an argument to {{free()
. If anything other than dynamic allocated memory is referenced by str
, the call to free(str)
is erroneous.
...