Changeset 4e37d56


Ignore:
Timestamp:
Jun 19, 2011, 1:49:34 AM (6 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
9d43dcc
Parents:
9efc154
git-author:
Anders Kaseorg <andersk@mit.edu> (06/19/11 01:28:17)
git-committer:
Anders Kaseorg <andersk@mit.edu> (06/19/11 01:49:34)
Message:
owl_dict_regtest: Copy and free dict values

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    re93dd78 r4e37d56  
    232232  owl_list l;
    233233  int numfailed=0;
    234   char *av="aval", *bv="bval", *cv="cval", *dv="dval";
     234  char *av = g_strdup("aval"), *bv = g_strdup("bval"), *cv = g_strdup("cval"),
     235    *dv = g_strdup("dval");
    235236
    236237  printf("# BEGIN testing owl_dict\n");
     
    261262  owl_list_cleanup(&l, g_free);
    262263  owl_dict_cleanup(&d, NULL);
     264
     265  g_free(av);
     266  g_free(bv);
     267  g_free(cv);
     268  g_free(dv);
    263269
    264270  /*  if (numfailed) printf("*** WARNING: failures encountered with owl_dict\n"); */
Note: See TracChangeset for help on using the changeset viewer.