Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Added PyCode_NewEmpty binding.#19

Closed
eliothedeman wants to merge 5 commits intosbinet:masterfrom
eliothedeman:master
Closed

Added PyCode_NewEmpty binding.#19
eliothedeman wants to merge 5 commits intosbinet:masterfrom
eliothedeman:master

Conversation

@eliothedeman
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread otherobjects.go
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/corosponds/corresponds/g

@sbinet
Copy link
Copy Markdown
Owner

sbinet commented Feb 3, 2015

LGTM, modulo the little typo :)

Comment thread otherobjects.go Outdated
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah. I think you need to free the CStrings (otherwise: memory leaks)
ie:

 cfname := C.CString(filename)
 defer C.free(unsafe.Pointer(cfname))

 cfuncname := C.CString(funcname)
 defer C.free(unsafe.Pointer(cfuncname))

 return togo(...)

@eliothedeman
Copy link
Copy Markdown
Contributor Author

Yup, forgot to free... my bad.

@sbinet
Copy link
Copy Markdown
Owner

sbinet commented Feb 3, 2015

thanks. could you address the little typo in the docstring ?

@eliothedeman
Copy link
Copy Markdown
Contributor Author

Yeah sorry about the trouble. I hope to keep helping, just wanted to get my feet wet first.

@sbinet
Copy link
Copy Markdown
Owner

sbinet commented Feb 3, 2015

no worries, and thanks again.
keep them coming.

@sbinet sbinet mentioned this pull request Feb 4, 2015
@sbinet sbinet closed this in #20 Feb 4, 2015
sbinet added a commit that referenced this pull request Feb 4, 2015
@sbinet
Copy link
Copy Markdown
Owner

sbinet commented Feb 4, 2015

ok, I cleaned up a bit your code and sent #20

next time, could you create a branch and send the pull request from that branch instead of from your master ?
(I was starting to see your developments wrt byte-slices and integers...)

@eliothedeman
Copy link
Copy Markdown
Contributor Author

ahh yes, will do. Sorry

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants