Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 182946 | Differences between
and this patch

Collapse All | Expand All

(-)ptr.c (+3 lines)
Lines 53-58 Link Here
53
void
53
void
54
dlptr_free(struct ptr_data *data)
54
dlptr_free(struct ptr_data *data)
55
{
55
{
56
  if (!data)
57
    return;
56
  if (data->ptr) {
58
  if (data->ptr) {
57
    DEBUG_CODE({
59
    DEBUG_CODE({
58
      printf("dlptr_free(): removing the pointer `0x%x' from the MemorySpace\n",
60
      printf("dlptr_free(): removing the pointer `0x%x' from the MemorySpace\n",
Lines 69-72 Link Here
69
  if (data->stype) dlfree(data->stype);
71
  if (data->stype) dlfree(data->stype);
70
  if (data->ssize) dlfree(data->ssize);
72
  if (data->ssize) dlfree(data->ssize);
71
  if (data->ids) dlfree(data->ids);
73
  if (data->ids) dlfree(data->ids);
74
  dlfree(data);
72
}
75
}
73
void
76
void
(-)sym.c (+3 lines)
Lines 57-62 Link Here
57
void
57
void
58
dlsym_free(struct sym_data *data)
58
dlsym_free(struct sym_data *data)
59
{
59
{
60
  if(!data)
61
    return;
60
  if( data->name ){
62
  if( data->name ){
61
    DEBUG_CODE({
63
    DEBUG_CODE({
62
      printf("dlsym_free(): free(data->name:%s)\n",data->name);
64
      printf("dlsym_free(): free(data->name:%s)\n",data->name);
Lines 69-72 Link Here
69
    });
71
    });
70
    free(data->type);
72
    free(data->type);
71
  }
73
  }
74
  dlfree(data);
72
}
75
}
73
VALUE
76
VALUE
(-)handle.c (-1 / +4 lines)
Lines 10-16 Link Here
10
void
10
void
11
dlhandle_free(struct dl_handle *dlhandle)
11
dlhandle_free(struct dl_handle *dlhandle)
12
{
12
{
13
  if (!dlhandle)
14
    return;
13
  if (dlhandle->ptr && dlhandle->open && dlhandle->enable_close) {
15
  if (dlhandle->ptr && dlhandle->open && dlhandle->enable_close) {
14
    dlclose(dlhandle->ptr);
16
    dlclose(dlhandle->ptr);
15
  }
17
  }
18
  dlfree(dlhandle);
16
}
19
}
17
VALUE
20
VALUE

Return to bug 182946