Don't alter a malloc'd variable and then try and free the altered result.
modified src/version.c
@@ -265,10 +265,11 @@ hash_indexfile(const char *indexfilename)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -280,20 +281,23 @@ hash_indexfile(const char *indexfilename)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
|
|
|
|
|
@@ -332,17 +336,18 @@ free_index(struct index_entry *indexhead)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -351,8 +356,10 @@ do_source_index(unsigned int opt, char limchar, char *pattern, match_t match,
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
|
@@ -653,7 +660,7 @@ exec_version(int argc, char **argv)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|