commit a9705505a48884d66efa5d535fff9d685b35808d from: Stefan Sperling date: Fri Sep 18 17:51:30 2020 UTC allow NULL pointer argument for got_free_gotconfig() commit - c8c7d149feda16fa5f471654738791b6e7f1af5e commit + a9705505a48884d66efa5d535fff9d685b35808d blob - c52b0ab71b1a027b3dde159ef7941c99e8811c52 blob + d3c83b325581b556b7bca0faa5d7f3fbc611c63b --- lib/gotconfig.c +++ lib/gotconfig.c @@ -133,6 +133,9 @@ got_gotconfig_free(struct got_gotconfig *conf) { int i; + if (conf == NULL) + return; + free(conf->author); for (i = 0; i < conf->nremotes; i++) {