diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2007-01-28 20:09:48 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2007-01-28 20:09:48 +0000 |
commit | 19ab311b65d55c748672a5d1d914f2af83c27956 (patch) | |
tree | ab19a7f621dfd60356b30555b8e6850f93f99496 /xdelta1/xdelta.c | |
parent | f33c5dde63152070c53add0e664b9a70530ddac9 (diff) |
Fixes the source-allocation problem, should resolve 64bit platform
issues.
Diffstat (limited to 'xdelta1/xdelta.c')
-rwxr-xr-x | xdelta1/xdelta.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xdelta1/xdelta.c b/xdelta1/xdelta.c index 3012afc..ff9b934 100755 --- a/xdelta1/xdelta.c +++ b/xdelta1/xdelta.c | |||
@@ -316,6 +316,8 @@ xdp_source_index_read (XdeltaSource *xs, | |||
316 | if (! ss) | 316 | if (! ss) |
317 | return FALSE; | 317 | return FALSE; |
318 | 318 | ||
319 | /* TODO: free ss */ | ||
320 | |||
319 | if (! unserialize_xdeltaindex (ss, &index)) | 321 | if (! unserialize_xdeltaindex (ss, &index)) |
320 | return FALSE; | 322 | return FALSE; |
321 | 323 | ||
@@ -325,8 +327,6 @@ xdp_source_index_read (XdeltaSource *xs, | |||
325 | xs->ck_count = index->index_len; | 327 | xs->ck_count = index->index_len; |
326 | xs->cksums = index->index; | 328 | xs->cksums = index->index; |
327 | 329 | ||
328 | /* @@@ how to free this? */ | ||
329 | |||
330 | return TRUE; | 330 | return TRUE; |
331 | } | 331 | } |
332 | 332 | ||
@@ -1419,6 +1419,8 @@ xdp_control_read (XdeltaStream *cont_in) | |||
1419 | if (! src) | 1419 | if (! src) |
1420 | return NULL; | 1420 | return NULL; |
1421 | 1421 | ||
1422 | /* TODO: free src */ | ||
1423 | |||
1422 | if (! serializeio_unserialize_generic_acceptable (src, ST_XdeltaControl | ST_Version0Control, & type, (void**) & cont)) | 1424 | if (! serializeio_unserialize_generic_acceptable (src, ST_XdeltaControl | ST_Version0Control, & type, (void**) & cont)) |
1423 | return NULL; | 1425 | return NULL; |
1424 | 1426 | ||