Merge lp:~thisfred/u1db/fix-my-faucet into lp:u1db
Proposed by
Eric Casteleijn
Status: | Merged |
---|---|
Approved by: | Sidnei da Silva |
Approved revision: | 303 |
Merged at revision: | 305 |
Proposed branch: | lp:~thisfred/u1db/fix-my-faucet |
Merge into: | lp:u1db |
Diff against target: |
61 lines (+12/-7) 2 files modified
src/u1db_sync_target.c (+6/-4) u1db/tests/c_backend_wrapper.pyx (+6/-3) |
To merge this branch: | bzr merge lp:~thisfred/u1db/fix-my-faucet |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel (community) | Approve | ||
Lucio Torre (community) | Approve | ||
Review via email: mp+106685@code.launchpad.net |
Commit message
Fixed two memory leaks.
Description of the change
Fixed two memory leaks.
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 5/21/2012 8:31 PM, Eric Casteleijn wrote: /code.launchpad .net/~thisfred/ u1db/fix- my-faucet/ +merge/ 106685
> Eric Casteleijn has proposed merging
> lp:~thisfred/u1db/fix-my-faucet into lp:u1db.
>
> Requested reviews: Ubuntu One hackers (ubuntuone-hackers)
>
> For more details, see:
> https:/
>
> Fixed two memory leaks.
- - handle_ status( "create_ index", index(self. _db, index_name, n_expressions, >expressions) status( "create_ index", >expressions)
- - u1db_create_
expressions))
- - free(<void*
+ try:
+ handle_
+ u1db_create_index(
+ self._db, index_name, n_expressions, expressions))
+ finally:
+ free(<void*
This might be easier to read as:
status = u1db_create_ index(. ..) >expressions)
free(<void*
handle_status(...)
Though the try/finally form seems fine, too.
review: approve enigmail. mozdev. org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk+ 7XKkACgkQJdeBCY SNAAOZ6ACbBQDTO SzqB4ztc65rxg0z WR3E yWYWhDTgJkmywwm MJRSw9
sFIAn09n56/
=MdU2
-----END PGP SIGNATURE-----