Update of /cvsroot/libexif/exif/exif
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv19306
Modified Files:
main.c
Log Message:
remove some memleak...
Index: main.c
===================================================================
RCS file: /cvsroot/libexif/exif/exif/main.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -p -d -r1.55 -r1.56
--- main.c 6 Jun 2007 14:30:19 -0000 1.55
+++ main.c 24 Jun 2007 16:44:02 -0000 1.56
@@ -376,7 +376,8 @@ main (int argc, const char **argv)
ctx = poptGetContext (PACKAGE, argc, argv, options, 0);
poptSetOtherOptionHelp (ctx, _("[OPTION...] file"));
- while (poptGetNextOpt (ctx) > 0);
+ while (poptGetNextOpt (ctx) > 0)
+ ;
/*
* When debugging, continue as far as possible. If not, make all errors
@@ -388,11 +389,13 @@ main (int argc, const char **argv)
/* Any command line parameters ? */
if (argc <= 1) {
poptPrintHelp (ctx, stdout, 0);
+ poptFreeContext(ctx);
return (1);
}
if (show_version) {
printf ("%s\n", VERSION);
+ poptFreeContext(ctx);
return 0;
}
@@ -610,9 +613,11 @@ main (int argc, const char **argv)
}
} else {
poptPrintHelp (ctx, stdout, 0);
+ poptFreeContext(ctx);
return(1);
}
+ exif_log_free(log);
poptFreeContext (ctx);
return (0);
|