Skip to content

Commit

Permalink
try not to inject leaks already ok ?
Browse files Browse the repository at this point in the history
  • Loading branch information
imilh committed Apr 15, 2012
1 parent d253640 commit ddcdb6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: cmd.h,v 1.8 2012/04/15 19:37:25 imilh Exp $ */
/* $Id: cmd.h,v 1.9 2012/04/15 20:58:23 imilh Exp $ */

/*
* Copyright (c) 2009, 2010, 2011 The NetBSD Foundation, Inc.
Expand Down Expand Up @@ -76,7 +76,7 @@ static struct command {
PKG_SHPROV_CMD },
{ "requires", "req", "Show what files a package requires.",
PKG_SHREQ_CMD },
{ "pkg-content", "pc", "Show package's files.",
{ "pkg-content", "pc", "Show package's content.",
PKG_SHPKGCONT_CMD },
{ "tonic", "to", "Gin Tonic recipe.",
PKG_GINTO_CMD },
Expand Down
5 changes: 3 additions & 2 deletions pkg_infos.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: pkg_infos.c,v 1.1 2012/04/15 19:37:25 imilh Exp $ */
/* $Id: pkg_infos.c,v 1.2 2012/04/15 20:58:23 imilh Exp $ */

/*
* Copyright (c) 2012 The NetBSD Foundation, Inc.
Expand Down Expand Up @@ -51,9 +51,10 @@ show_pkg_info(char flag, char *pkgname)

for (i = 0; out_cmd[i] != NULL; i++)
printf("%s\n", out_cmd[i]);

free_list(out_cmd);
}

free_list(out_cmd);
XFREE(fullpkgname);

return;
Expand Down

0 comments on commit ddcdb6b

Please sign in to comment.