diff options
Diffstat (limited to 'archival')
-rw-r--r-- | archival/dpkg.c | 3 | ||||
-rw-r--r-- | archival/libunarchive/decompress_bunzip2.c | 2 | ||||
-rw-r--r-- | archival/unzip.c | 6 |
3 files changed, 5 insertions, 6 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 70eaefb94..74d3a83d9 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -544,8 +544,7 @@ static void free_package(common_node_t *node) | |||
544 | for (i = 0; i < node->num_of_edges; i++) { | 544 | for (i = 0; i < node->num_of_edges; i++) { |
545 | free(node->edge[i]); | 545 | free(node->edge[i]); |
546 | } | 546 | } |
547 | if ( node->edge ) | 547 | free(node->edge); |
548 | free(node->edge); | ||
549 | free(node); | 548 | free(node); |
550 | } | 549 | } |
551 | } | 550 | } |
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c index df6fa078f..7f700ca7f 100644 --- a/archival/libunarchive/decompress_bunzip2.c +++ b/archival/libunarchive/decompress_bunzip2.c | |||
@@ -714,7 +714,7 @@ extern int uncompressStream(int src_fd, int dst_fd) | |||
714 | } else { | 714 | } else { |
715 | bb_error_msg("Decompression failed"); | 715 | bb_error_msg("Decompression failed"); |
716 | } | 716 | } |
717 | if(bd->dbuf) free(bd->dbuf); | 717 | free(bd->dbuf); |
718 | free(bd); | 718 | free(bd); |
719 | free(outbuf); | 719 | free(outbuf); |
720 | 720 | ||
diff --git a/archival/unzip.c b/archival/unzip.c index ff2b1a266..7e0d107cc 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -393,7 +393,7 @@ extern int unzip_main(int argc, char **argv) | |||
393 | goto _check_file; | 393 | goto _check_file; |
394 | 394 | ||
395 | default: | 395 | default: |
396 | printf("error: invalid response [%c]\n",(char)i); | 396 | printf("error: invalid response [%c]\n",(char)i); |
397 | goto _check_file; | 397 | goto _check_file; |
398 | } | 398 | } |
399 | 399 | ||
@@ -405,8 +405,8 @@ extern int unzip_main(int argc, char **argv) | |||
405 | } | 405 | } |
406 | 406 | ||
407 | if (verbosity == v_list) { | 407 | if (verbosity == v_list) { |
408 | printf(" -------- -------\n"); | 408 | printf(" -------- -------\n" |
409 | printf("%9d %d files\n", total_size, total_entries); | 409 | "%9d %d files\n", total_size, total_entries); |
410 | } | 410 | } |
411 | 411 | ||
412 | return(EXIT_SUCCESS); | 412 | return(EXIT_SUCCESS); |