commit - 40831471082f880a26b73987b595a52dc1c93794
commit + b7efc9b3ebc727cc522b23b39d3eec8f34166e66
blob - 18dca123b78589b4efb8482bc4caa54e1aae7176
blob + 3c69584a92b6b958e709a94fbda0d8de2e82ccf9
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
struct got_tree_object *tree = NULL;
struct repo_dir *repo_dir = t->repo_dir;
const char *name, *index_page_str, *folder;
- char *id_str = NULL, *escaped_name;
+ char *id_str = NULL, *escaped_name = NULL;
char *path = NULL, *in_repo_path = NULL, *modestr = NULL;
int nentries, i, r;
id_str = NULL;
free(modestr);
modestr = NULL;
+ free(escaped_name);
+ escaped_name = NULL;
}
done:
+ free(escaped_name);
free(id_str);
free(modestr);
free(path);