FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix freeing a `GitOid` that was passed as a string by johnhaley81 · Pull Request #531 · nodegit/nodegit · GitHub

Repository navigation

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

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

johnhaley81 merged 1 commit into
masterfrom
fix-free-error-windows

Conversation

Copy link
Copy Markdown
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 commented Apr 7, 2015

Copy link
Copy Markdown
Member

Pretty sure this fixes: #501 right?

Copy link
Copy Markdown
Collaborator Author

That should fix it.

Copy link
Copy Markdown
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 merged commit c86625b into master Apr 7, 2015
johnhaley81 deleted the fix-free-error-windows branch April 7, 2015 21:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL