create-diff-object: free hint variable on failure

Make sure we are freeing previously allocated "hint" variable on error
before exiting.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
Artem Savkov 2019-08-01 11:59:43 +02:00
parent 054915e957
commit 7129bb48c9
1 changed files with 1 additions and 0 deletions

View File

@ -3462,6 +3462,7 @@ int main(int argc, char *argv[])
log_debug("no changed functions were found, but callbacks exist\n");
else {
log_debug("no changed functions were found\n");
free(hint);
return EXIT_STATUS_NO_CHANGE;
}
}