Skip to content

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

Merged
johnhaley81 merged 1 commit intomasterfrom
fix-free-error-windows
Apr 7, 2015
Merged

Fix freeing a GitOid that was passed as a string#531
johnhaley81 merged 1 commit intomasterfrom
fix-free-error-windows

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.

2 participants