Ignore:
Timestamp:
Jun 29, 2009, 7:19:18 PM (10 years ago)
Author:
bruno
Message:

r3145@localhost: bruno | 2009-06-29 17:18:58 +0200

  • Remove 2 memory leaks and change the behavoir for function media_descriptor_string which now allocates the string it returns (which needs to be free by the caller)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c

    r2230 r2242  
    279279char *mount_isodir_command = NULL;
    280280char *tmp, *command;
     281char *mds = NULL;
    281282int retval = 0, i;
    282283bool already_mounted = FALSE;
     
    331332}
    332333i = what_number_cd_is_this();   /* has the side-effect of calling mount_media() */
    333 sprintf(tmp, "%s #%d has been mounted via loopback mount",
    334     media_descriptor_string(bkpinfo->backup_media_type), i);
     334mds = media_descriptor_string(bkpinfo->backup_media_type);
     335sprintf(tmp, "%s #%d has been mounted via loopback mount", mds, i);
     336mr_free(mds);
     337
    335338log_msg(1, tmp);
    336339if (i < 0) {
Note: See TracChangeset for help on using the changeset viewer.