Skip to content

Commit

Permalink
Merge pull request #515 from analogdevicesinc/rgetz-coverity-fix-reso…
Browse files Browse the repository at this point in the history
…urce-leak

coverity: fix resource leak in network.c
  • Loading branch information
rgetz authored May 22, 2020
2 parents f0dcbf0 + 605baa9 commit 831d858
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions network.c
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,7 @@ struct iio_context * network_create_context(const char *host)
ctx->description = description;
}

free(uri);
iiod_client_set_timeout(pdata->iiod_client, &pdata->io_ctx,
calculate_remote_timeout(DEFAULT_TIMEOUT_MS));
return ctx;
Expand Down

0 comments on commit 831d858

Please sign in to comment.