The vimode error

cmd-runner.c:706:15: warning: Dereferencing 'kpl' after it is deallocated / released [deallocuse]
  g_free(ctx->kpl->data);

is a false positive though. It happens for line

https://github.com/geany/geany-plugins/blob/7cb4499878e3a88f1bf5c67b3eae03c6cb8604d6/vimode/src/cmd-runner.c#L706

but this line is only executed when ctx->kpl != NULL and in the code above ctx->kpl is always set to NULL when ctx->kpl is deallocated. So there's no way this line could be executed on a deallocated ctx->kpl.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany-plugins/issues/1196/1245981754@github.com>