Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix freeing a GitOid that was passed as a string #531

Merged
merged 1 commit into from Apr 7, 2015

Conversation

johnhaley81
Copy link
Collaborator

We will allow a user to pass a string as a valid parameter for any parameter that is a GitOid. In the function will will then convert that parameter to a GitOid and then free it after it's no longer in use. In a synchronous function we just did free(&arg) which was causing an issue in Windows. Now we'll appropriately cast that to a void * that will allow MSBUILD to free it without crashing.

@tbranyen
Copy link
Member

tbranyen commented Apr 7, 2015

Pretty sure this fixes: #501 right?

@johnhaley81
Copy link
Collaborator Author

That should fix it.

@johnhaley81
Copy link
Collaborator Author

Ugh, timeouts are killing the tests...

johnhaley81 added a commit that referenced this pull request Apr 7, 2015
Fix freeing a `GitOid` that was passed as a string
@johnhaley81 johnhaley81 merged commit c86625b into master Apr 7, 2015
@johnhaley81 johnhaley81 deleted the fix-free-error-windows branch April 7, 2015 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants